/* ==========================================================================
   GLOBAL CSS - Unified Cyber/Networking Theme
   ========================================================================== */

/* --- CSS VÁLTOZÓK --- */
:root {
    --background-dark: #0A0A0A;
    --background-gradient: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 50%, #0A0A0A 100%);
    --text-light: #F0F0F0;
    --text-muted: #888;
    --primary-blue: #00BFFF;
    --secondary-red: #FF4500;
    --accent-gold: #FFD700;
    --success-green: #00FF7F;
    --card-dark: #1C1C1C;
    --card-hover: #252525;
    --border-color: #333;
    --input-bg: #333333;
    --header-bg: rgba(28, 28, 28, 0.95);
}

/* --- RESET ÉS ALAP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Consolas', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-gradient);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* --- SZÉP SCROLLBAR --- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: var(--background-dark);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), #006699);
    border-radius: 6px;
    border: 2px solid var(--background-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00DFFF, var(--primary-blue));
    box-shadow: 0 0 10px var(--primary-blue);
}
::-webkit-scrollbar-corner {
    background: var(--background-dark);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--background-dark);
}

/* --- FIX HEADER --- */
.global-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-blue);
    box-shadow: 0 2px 20px rgba(0, 191, 255, 0.3);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.global-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.global-header .logo-icon {
    font-size: 1.5em;
}

.global-header .logo-text {
    color: var(--primary-blue);
    font-size: 1.4em;
    font-weight: bold;
    text-shadow: 0 0 15px var(--primary-blue);
    text-decoration: none;
}

.global-header nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.global-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 8px;
}

.global-header nav a:hover {
    color: var(--text-light);
    text-shadow: 0 0 10px var(--primary-blue);
    background: rgba(0, 191, 255, 0.1);
}

.global-header nav a.active {
    color: var(--text-light);
    border-bottom: 2px solid var(--primary-blue);
}

/* --- USER INFO (Header) --- */
.header-user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.user-badge .rank-icon {
    font-size: 1.3em;
}

.user-badge .username {
    font-weight: bold;
    color: var(--text-light);
    font-size: 0.9em;
}

.user-badge .rank-name {
    font-size: 0.75em;
    opacity: 0.8;
}

/* --- GOMBOK --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.9em;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--background-dark);
}

.btn-primary:hover {
    background: #00a0cc;
    box-shadow: 0 0 20px var(--primary-blue);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--secondary-red);
    color: white;
}

.btn-danger:hover {
    background: #cc3700;
    box-shadow: 0 0 20px var(--secondary-red);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-green);
    color: var(--background-dark);
}

.btn-success:hover {
    background: #00cc66;
    box-shadow: 0 0 20px var(--success-green);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--background-dark);
    box-shadow: 0 0 20px var(--primary-blue);
}

/* --- MAIN CONTAINER --- */
.main-content {
    flex: 1;
    margin-top: 80px; /* Header magasság */
    padding: 40px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* --- CARDS --- */
.card {
    background: var(--card-dark);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
                0 0 25px rgba(0, 191, 255, 0.2);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* --- SECTION TITLES --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1em;
}

/* --- FOOTER --- */
.global-footer {
    background: var(--card-dark);
    text-align: center;
    padding: 25px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.global-footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

.global-footer a:hover {
    text-decoration: underline;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1em;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.form-control.is-invalid {
    border-color: var(--secondary-red);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.invalid-feedback {
    color: var(--secondary-red);
    font-size: 0.85em;
    margin-top: 5px;
}

/* --- ALERTS --- */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid var(--secondary-red);
    color: #ff6b4a;
}

.alert-success {
    background: rgba(0, 255, 127, 0.2);
    border: 1px solid var(--success-green);
    color: var(--success-green);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .global-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .global-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .header-user-section {
        flex-direction: column;
        gap: 10px;
    }

    .main-content {
        margin-top: 180px;
        padding: 20px 15px;
    }

    .section-title h2 {
        font-size: 1.6em;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* --- LOGIN/REGISTER SPECIFIC --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-size: 2em;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

.auth-card p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.auth-card .form-group input {
    width: 100%;
    padding: 14px 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1em;
    transition: all 0.3s;
}

.auth-card .form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.auth-card .btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    margin-top: 10px;
}

.auth-card .auth-links {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.auth-card .auth-links a {
    color: var(--primary-blue);
    text-decoration: none;
}

.auth-card .auth-links a:hover {
    text-decoration: underline;
}

/* --- PAGE-SPECIFIC STYLES --- */

/* Profile Card (Home page) */
.profile-card {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--card-dark);
    border-radius: 16px;
    border: 1px solid var(--primary-blue);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.3);
}

.profile-card .profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
    margin-bottom: 20px;
    object-fit: cover;
}

.profile-card h2 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.profile-card .handle {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.profile-card .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-card .skill-badge {
    background: rgba(0, 191, 255, 0.2);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid var(--primary-blue);
}

.profile-card .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.profile-card .social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.profile-card .social-icons a:hover {
    background: var(--primary-blue);
    color: var(--background-dark);
    transform: translateY(-3px);
}

/* Dashboard Cards */
.dashboard-card {
    text-decoration: none;
    color: var(--text-light);
}

.dashboard-card .card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.dashboard-card .card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.dashboard-card .card-desc {
    color: var(--text-muted);
    font-size: 0.95em;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.stat-item .stat-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-gold);
}

.stat-item .stat-label {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 5px;
}

/* References/Team Typing Effect */
.typing-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 40px;
}

.typing-section .typing-avatar {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
    object-fit: cover;
}

.typing-section .typed-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    border-right: 2px solid var(--primary-blue);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Team/Reference Cards */
.member-card {
    cursor: pointer;
}

.member-card .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-blue);
    display: block;
}

.member-card .role-tag {
    display: inline-block;
    background: rgba(0, 191, 255, 0.2);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.member-card h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.member-card .description {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.member-card .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.member-card .skill-tag {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--card-dark);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--primary-blue);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.3);
}

.modal .close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-muted);
    font-size: 2em;
    cursor: pointer;
    transition: color 0.3s;
}

.modal .close:hover {
    color: var(--secondary-red);
}

/* Tables (for crypto/admin pages) */
.table-container {
    overflow-x: auto;
    background: var(--card-dark);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(0, 191, 255, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-yes {
    color: var(--success-green);
}

.status-no {
    color: var(--secondary-red);
}
