﻿/* Your existing styles... */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --background-dark: #0b132b;
    --background-light: #1c2541;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
}

body {
    background: linear-gradient(135deg, var(--background-dark), var(--background-light));
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* Guest/Unauthenticated User Styles */
.guest-header {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(247, 37, 133, 0.3);
}

.guest-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.guest-info {
    display: flex;
    align-items: center;
}

.guest-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
    color: var(--text-muted);
}

.guest-details h5 {
    margin: 0;
    font-size: 16px;
    color: var(--text-muted);
}

.guest-details p {
    margin: 0;
    font-size: 12px;
    color: var(--accent-color);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .login-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--text-light);
        transform: translateY(-2px);
    }

.signup-btn {
    background: linear-gradient(135deg, var(--accent-color), #b5179e);
    color: white;
}

    .signup-btn:hover {
        background: linear-gradient(135deg, #b5179e, var(--accent-color));
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
    }

/* Guest overlay for restricted content */
.guest-overlay {
    position: relative;
    min-height: 50vh; /* makes the overlay fill the viewport */
}

    .guest-overlay::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
/*        background: rgba(0, 0, 0, 0.15);*/
        backdrop-filter: blur(2px);
        border-radius: 15px;
        z-index: 2;
    }

    .guest-overlay .unlock-message {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        text-align: center;
        color: white;
    }

.unlock-message h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.unlock-message p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.unlock-btn {
    background: linear-gradient(135deg, var(--accent-color), #b5179e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .unlock-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
    }

/* Guest welcome banner */
.guest-welcome {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(247, 37, 133, 0.2));
    border-radius: 15px;
    padding: 20px;
    margin: 15px;
    text-align: center;
    border: 1px solid rgba(247, 37, 133, 0.3);
}

    .guest-welcome h3 {
        margin-bottom: 10px;
        color: var(--text-light);
    }

    .guest-welcome p {
        margin-bottom: 20px;
        color: var(--text-muted);
    }

    .guest-welcome .benefits {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

.benefit-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-light);
}

    .benefit-item i {
        color: var(--accent-color);
    }

/* Limited games for guests */
.game-card.locked {
    opacity: 0.6;
    position: relative;
    cursor: not-allowed;
}

    .game-card.locked::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 12px;
        z-index: 1;
    }

    .game-card.locked .lock-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        color: var(--accent-color);
        font-size: 24px;
    }

/* Hide authenticated content for guests */
.auth-only {
    display: none;
}

.guest-only {
    display: block;
}

/* When user is authenticated */
body.authenticated .auth-only {
    display: block;
}

body.authenticated .guest-only {
    display: none;
}

body.authenticated .guest-overlay::after,
body.authenticated .guest-overlay .unlock-message {
    display: none;
}

body.authenticated .game-card.locked {
    opacity: 1;
    cursor: pointer;
}

    body.authenticated .game-card.locked::after,
    body.authenticated .game-card.locked .lock-icon {
        display: none;
    }


/*.app-header {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.profile-info {
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.profile-details h5 {
    margin: 0;
    font-size: 16px;
}

.profile-details p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.profile-actions {
    display: flex;
    gap: 15px;
}

    .profile-actions button {
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 20px;
    }*/

/* Continue with your existing styles... */
/*.section-title {
    margin: 20px 15px 15px;
    font-size: 22px;
    font-weight: 600;
}

.featured-game {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/800x400');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    height: 180px;
    margin: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

    .featured-game:hover {
        transform: translateY(-5px);
    }

    .featured-game::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        pointer-events: none;
    }

    .featured-game h3 {
        margin: 0;
        font-size: 24px;
        font-weight: bold;
        position: relative;
        z-index: 1;
    }

    .featured-game p {
        margin: 5px 0 0;
        font-size: 14px;
        color: var(--text-muted);
        position: relative;
        z-index: 1;
    }

    .featured-game .play-button {
        position: absolute;
        top: 15px;
        right: 15px;
        background-color: var(--accent-color);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        z-index: 2;
        transition: transform 0.2s;
    }

        .featured-game .play-button:hover {
            transform: scale(1.1);
        }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 0 15px;
}

.game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

.game-card-image {
    height: 100px;
    background-size: cover;
    background-position: center;
}

.game-card-content {
    padding: 12px;
}

.game-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.game-card-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
}

    .nav-item.active {
        color: var(--primary-color);
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 3px;
    }*/

/* Animation for cards */
/*@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeIn 0.5s ease-out forwards;
}

    .game-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .game-card:nth-child(3) {
        animation-delay: 0.2s;
    }

    .game-card:nth-child(4) {
        animation-delay: 0.3s;
    }

    .game-card:nth-child(5) {
        animation-delay: 0.4s;
    }

    .game-card:nth-child(6) {
        animation-delay: 0.5s;
    }*/
/*Modal things*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #1e1e2f;
    color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

    .modal-content h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 20px;
    }

    .modal-content p {
        margin-bottom: 20px;
        font-size: 15px;
        color: #ccc;
    }

.modal-btn {
    background: linear-gradient(135deg, var(--accent-color, #f72585), #b5179e);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
    }

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #999;
    font-size: 20px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}