/* WELCOME NAVBAR */
.welcome-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.125rem 1.25rem;
    border-bottom: 0.25rem solid #5C4A3D;
    background: rgba(42, 31, 26, 0.8);
    flex-wrap: wrap;
    gap: 0.9375rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4), inset 0 -0.5rem 1rem rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10; /* keep above content */
}

.site-logo {
    position: absolute;
    top: 4rem; /* lejjebb, hogy a teljes logó látható legyen */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20rem; /* dupla méret */
    height: 20rem; /* dupla méret */
    background: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

/* remove earlier nav-links positioning since logo now overlaps */
.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: static;
    right: auto;
}

.site-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border: none;
}

.welcome-nav .nav-title {
    font-size: 1rem;
    flex: 1;
    text-align: center;
    min-width: 9.375rem;
    text-shadow: 0.125rem 0.125rem #1a1410;
    color: #c9b8a0;
    font-family: 'Press Start 2P', cursive;
}





.nav-link {
    color: #a68a6b;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.625rem;
    padding: 0.5rem 1rem;
    border: 0.1875rem solid #5C4A3D;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    color: #c9b8a0;
}

.nav-link:active {
    transform: translateY(0);
}

/* WELCOME SPECIFIKUS */
.welcome {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 20px 3rem;
    background: url('Background2.png') center/cover fixed no-repeat;
    background-color: #1a1410;
}

.welcome-box {
    background: rgba(74, 60, 49, 0.92);
    border: 4px solid #5C4A3D;
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 3.5rem);
    width: 100%;
    max-width: 960px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4), inset 0 0 1rem rgba(0, 0, 0, 0.15);
}

.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.grid-card {
    border-radius: 1.75rem;
    border: 0.25rem solid rgba(198, 156, 109, 0.9);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: rgba(26, 20, 16, 0.8);
    box-shadow: 0 1.25rem 2.25rem rgba(0, 0, 0, 0.4);
}

.grid-card--text {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    color: #f0e6d2;
}

.grid-card--story {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
}

.grid-card--story h1 {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #f8e7ce;
    word-break: keep-all;
}

.grid-card--story p {
    margin: 0;
    line-height: 1.6;
    color: #d9c9b2;
    word-wrap: break-word;
    font-size: 0.8rem;
}

.grid-eyebrow {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c9b8a0;
}

.grid-card--text p {
    margin: 0;
    line-height: 1.7;
    color: #d9c9b2;
}

.grid-card--text h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #f0e6d2;
}


.grid-card--image {
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.grid-card--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: none;
}

.grid-card--image-top {
    grid-column: 2;
    grid-row: 1;
}

.grid-card--image-top img {
    object-fit: contain;
    width: 100%;
    height: auto;
}

.grid-card--image-bottom {
    grid-column: 1;
    grid-row: 2;
}

.grid-card--cta {
    grid-column: 2;
    grid-row: 1;
    justify-content: space-between;
}

.grid-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.grid-button {
    flex: 0 1 auto;
    text-align: center;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-button--primary {
    background: linear-gradient(135deg, #ff6bb3, #f9dc7b);
    color: #340b1f;
    border: 0.25rem solid #7c1335;
    box-shadow: 0 0.4rem 1rem rgba(255, 107, 179, 0.4);
}

.grid-button--ghost {
    background: transparent;
    color: #f0e6d2;
    border: 0.25rem solid rgba(201, 184, 160, 0.55);
}

.grid-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.35);
}

.grid-button:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .grid-card {
        grid-column: auto;
        grid-row: auto;
    }

    .grid-buttons {
        flex-direction: column;
    }
}

/* ===== ALAP ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #3a2f27 0%, #2a1f1a 50%, #1a1410 100%);
    color: #f0e6d2;
    text-shadow: 0.125rem 0.125rem #1a1410, 0.25rem 0.25rem rgba(0, 0, 0, 0.5);
    min-height: 100vh;
}

/* ===== KÖZÖS BOX ALAP ===== */
.box {
    width: 90%;
    max-width: 23.75rem;
    margin: 5rem auto;
    padding: 2rem;
    border-radius: 0.875rem;
    text-align: center;
    border: 0.3125rem solid #5C4A3D;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4), inset 0 0 0.5rem rgba(0, 0, 0, 0.2);
}

/* ===== LOGIN BOX ===== */
.login-box {
    background: rgba(74, 60, 49, 0.9);
    border-color: #5C4A3D;
}

/* ===== REGISTER BOX ===== */
.register-box {
    background: rgba(74, 60, 49, 0.9);
    border-color: #5C4A3D;
}

/* ===== CÍMEK ===== */
.box h2 {
    margin-bottom: 1.625rem;
    font-size: 1.125rem;
    line-height: 1.4;
}

/* ===== INPUT ===== */
input {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 0.875rem;
    background: rgba(26, 20, 16, 0.8);
    border: 0.1875rem solid #8B7355;
    border-radius: 0.4375rem;
    color: #c9b8a0;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.625rem;
}

input:focus {
    outline: none;
    border-color: #A68A6B;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3), inset 0 0 0.5rem rgba(0, 0, 0, 0.15);
}

/* ===== GOMB ===== */
button {
    width: 100%;
    padding: 0.875rem;
    margin-top: 0.625rem;
    background: linear-gradient(135deg, #7B6B52, #5C4A3D);
    border: 0.1875rem solid #3D2817;
    border-radius: 0.4375rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    cursor: pointer;
    color: #e8d5b7;
    box-shadow: 0 0.25rem #1a1410, inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button:hover {
    background: linear-gradient(135deg, #8B7A60, #6B5A46);
    box-shadow: 0 0.25rem #1a1410, inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0.1875rem);
    box-shadow: 0 0.0625rem #1a1410, inset 0 0 1rem rgba(0, 0, 0, 0.3);
}

/* ===== ÜZENETEK ===== */
.message {
    margin-bottom: 0.9375rem;
    font-size: 0.6875rem;
}

.success { color: #a68a6b; }
.error { color: #c9b8a0; }

/* ===== NAVBAR / MAIN ===== */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem;
    border-bottom: 0.25rem solid #5C4A3D;
    background: rgba(42, 31, 26, 0.8);
    flex-wrap: wrap;
    gap: 0.9375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4), inset 0 -0.5rem 1rem rgba(0, 0, 0, 0.5);
}

.nav-logo {
    width: 3.125rem;
    height: 3.125rem;
    background: linear-gradient(135deg, #6B5A46, #4A3A2A);
    border: 0.1875rem solid #3D2817;
    flex-shrink: 0;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4);
}

.nav-title {
    font-size: 1rem;
    flex: 1;
    text-align: center;
    min-width: 9.375rem;
    color: #c9b8a0;
    text-shadow: 0.125rem 0.125rem #1a1410;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-pic {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #7B6B52, #5C4A3D);
    border: 0.1875rem solid #3D2817;
    border-radius: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4);
}

.username {
    font-size: 0.75rem;
    display: none;
}

.main-content {
    padding: 2.5rem 1.25rem;
    text-align: center;
    max-width: 75rem;
    margin: 0 auto;
}

.main-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1.875rem;
    line-height: 1.5;
    color: #c9b8a0;
    text-shadow: 0.125rem 0.125rem #1a1410;
}

.logout-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #7B6B52, #5C4A3D);
    border: 0.1875rem solid #3D2817;
    border-radius: 0.4375rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    color: #e8d5b7;
    text-decoration: none;
    box-shadow: 0 0.25rem #1a1410, inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #8B7A60, #6B5A46);
    box-shadow: 0 0.25rem #1a1410, inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.logout-btn:active {
    transform: translateY(0.1875rem);
    box-shadow: 0 0.0625rem #1a1410, inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ===== TABLET (min 600px) ===== */
@media (min-width: 37.5rem) {
    .box {
        margin: 6.25rem auto;
    }
    
    .box h2 {
        font-size: 1.25rem;
    }
    
    .nav {
        padding: 1.125rem 1.875rem;
    }
    
    .nav-logo {
        width: 3.75rem;
        height: 3.75rem;
    }
    
    .nav-title {
        font-size: 1.125rem;
    }
    
    .profile-pic {
        width: 3.125rem;
        height: 3.125rem;
    }
    
    .username {
        display: inline;
    }
    
    .main-content h2 {
        font-size: 1.5rem;
    }
}

/* ===== DESKTOP (min 1024px) ===== */
@media (min-width: 64rem) {
    .box {
        margin: 7.5rem auto;
    }
    
    .nav {
        padding: 1.25rem 3.125rem;
    }
    
    .nav-title {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 3.75rem 2.5rem;
    }
    
    .main-content h2 {
        font-size: 1.75rem;
    }
}

/* ===== MOBIL KISEBB BETŰK ===== */
@media (max-width: 25rem) {
    .box h2 {
        font-size: 0.875rem;
    }
    
    input {
        font-size: 0.5625rem;
        padding: 0.75rem;
    }
    
    button {
        font-size: 0.625rem;
        padding: 0.75rem;
    }
    
    .nav-title {
        font-size: 0.75rem;
    }
    
    .nav-logo {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .profile-pic {
        width: 2.1875rem;
        height: 2.1875rem;
    }
    
    .main-content h2 {
        font-size: 1rem;
    }
    
    .logout-btn {
        font-size: 0.625rem;
        padding: 0.75rem 1.25rem;
    }
}

/* FOOTER STYLES */
.welcome-footer {
    background: rgba(42, 31, 26, 0.95);
    border-top: 0.25rem solid #5C4A3D;
    padding: 2rem 1rem;
    margin-top: 2rem;
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.4);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-section h3 {
    font-size: 0.875rem;
    color: #c9b8a0;
    margin-bottom: 1.5rem;
    text-shadow: 0.125rem 0.125rem #1a1410;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 1rem;
    border: 0.1875rem solid #5C4A3D;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border-color: #8B7355;
}

.social-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c9b8a0;
    text-shadow: 0.0625rem 0.0625rem #1a1410;
    font-family: 'Press Start 2P', cursive;
}

.facebook .social-icon {
    color: #4267B2;
}

.discord .social-icon {
    color: #5865F2;
}

.instagram .social-icon {
    color: #E4405F;
}

.social-text {
    font-size: 0.5rem;
    color: #a68a6b;
    font-family: 'Press Start 2P', cursive;
}

.footer-bottom {
    font-size: 0.5rem;
    color: #8B7355;
    padding-top: 1rem;
    border-top: 0.1875rem solid #5C4A3D;
}

.footer-bottom p {
    margin: 0;
}
