/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --accent-gold: #d4af37;
    --text-light: #e0e0e0;
    --text-dim: #a0a0a0;
    --danger-red: #dc3545;
    --success-green: #28a745;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Special Elite', monospace;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
}

/* Navigation Auth Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-button {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c99f3a 100%);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
}

.user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-dark);
}

.user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-photo i {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.sign-out-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0;
    text-align: left;
    transition: color 0.3s ease;
}

.sign-out-btn:hover {
    color: var(--accent-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-gold);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 3px
    );
    pointer-events: none;
}

.flicker-light {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.typewriter {
    font-family: 'Special Elite', monospace;
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    animation: typing 2s steps(30);
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent-gold);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background-color: rgba(26, 31, 58, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-gold);
    font-family: 'Special Elite', monospace;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Section */
.filter-section {
    padding: 3rem 0;
    text-align: center;
}

.filter-section h2 {
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Cases Section */
.cases-section {
    padding: 4rem 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--secondary-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.case-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.case-status.available {
    background-color: var(--success-green);
    color: white;
}

.case-status.locked {
    background-color: var(--text-dim);
    color: var(--primary-dark);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.case-number {
    font-family: 'Special Elite', monospace;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.case-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.case-difficulty.easy {
    background-color: var(--success-green);
    color: white;
}

.case-difficulty.medium {
    background-color: #ffc107;
    color: var(--primary-dark);
}

.case-difficulty.hard {
    background-color: var(--danger-red);
    color: white;
}

.case-title {
    font-family: 'Special Elite', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.case-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.case-description {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.case-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
}

.case-detail i {
    color: var(--accent-gold);
}

.case-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.case-btn:hover {
    background-color: #c49b2d;
    transform: scale(1.05);
}

.case-btn.disabled {
    background-color: var(--text-dim);
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
.footer {
    background-color: var(--secondary-dark);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 2px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: 'Special Elite', monospace;
}

.footer-section p {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-dim);
}

/* Coming Soon Page */
.coming-soon {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.coming-soon-content {
    max-width: 600px;
}

.coming-soon-content i.fa-lock {
    font-size: 5rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.coming-soon-content h1 {
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.coming-soon-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.coming-soon-content .case-location {
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.case-summary {
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.case-meta-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
}

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

.coming-soon-message {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.back-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.back-btn:hover {
    background-color: #c49b2d;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .typewriter {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .coming-soon-content h2 {
        font-size: 1.8rem;
    }

    .case-meta-info {
        flex-direction: column;
        gap: 1rem;
    }
}