/* --- GODTHRONE UNIFIED GLOBAL CSS --- */

/* 1. RESET & CORE PROTOCOL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    hyphens: none; /* Protocol: No Hyphens */
}

body {
    font-family: 'Lexend Exa', sans-serif;
    background: radial-gradient(circle at 50% 20%, #020224, #000000 60%);
    color: #d5c8af;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: hidden;
}

/* 2. LAYOUT CONTAINERS */
.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures Title & Grid share same center line */
}

.title {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeUp 0.8s ease;
}

.title h1 {
    font-family: 'Acme', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 8px;
    background: linear-gradient(45deg, #ff6b9d, #da4a6c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.3));
}

.title p {
    font-size: 1rem;
    letter-spacing: 4px;
    opacity: 0.8;
    margin-top: 10px;
    text-transform: uppercase;
}

/* 3. CARD-STYLE MENU SYSTEM (HARD-FIXED) */
.menu-panel {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.menu-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 10px; 
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Lexend Exa', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    overflow: hidden; /* Clips the "Secret Sauce" animations */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform; /* Hardware optimization for interactions */
}

.menu-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #ff6b9d;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.2);
}

/* Menu Toggle "Secret Sauce" (Matches Cards) */
.menu-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 157, 0.15), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.menu-toggle:hover::before { 
    opacity: 1; 
}

.menu-toggle::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(80, 39, 39, 0.1), transparent);
    transform: rotate(25deg);
    transition: 0.6s;
}

.menu-toggle:hover::after { 
    top: 120%; 
}

#menuContent {
    display: none;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 107, 157, 0.3);
    padding: 6px;
    margin-top: 6px;
    border-radius: 10px;
    min-width: 120px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    animation: menuSlide 0.3s ease forwards;
}

#menuContent a {
    display: block;
    color: #ff6b9d;
    padding: 6px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: right;
    transition: all 0.2s ease;
    border-radius: 6px;
}

#menuContent a:hover {
    color: #ffffff;
    background: rgba(255, 107, 157, 0.1);
    transform: translateX(-3px);
}

/* 4. INTERFACE GRID (EXPANDED FOR 4 CARDS) */
.interface {
    display: grid;
    grid-template-columns: repeat(auto-fit, 220px); 
    gap: 20px; 
    width: 100%;
    max-width: 940px; /* FIXED: (4 cards * 220px) + (3 gaps * 20px) for precise centering */
    margin: 0 auto;
    justify-content: center;
}

/* 5. UNIVERSAL CARD DESIGN */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; 
    padding: 30px 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centers content vertically */
    min-height: 1px;         /* Alignment safety guard */
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s ease forwards;
    will-change: transform; /* Hardware optimization for micro-interactions */
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #ff6b9d;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
}

/* Card "Secret Sauce" */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 157, 0.15), transparent 70%);
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.card:hover::before { 
    opacity: 1; 
}

.card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(80, 39, 39, 0.1), transparent);
    transform: rotate(25deg);
    transition: 0.6s;
    pointer-events: none;
}

.card:hover::after { 
    top: 120%; 
}

/* AVATARS */
.img-avatar {
    width: 50px;   
    height: 50px;  
    border-radius: 50%;
    border: 2px solid #ff6b9d;
    margin-bottom: 12px; 
    object-fit: cover;
    transition: 0.3s ease;
    z-index: 1;
}

/* TYPOGRAPHY */
.card h3 {
    font-family: 'Acme', sans-serif;
    color: #ff6b9d;
    font-size: 0.9rem; 
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    font-size: 0.6rem; 
    line-height: 1.2;   
    margin-bottom: 2px;
}

.line-1 { color: #ff6b9d; } /* Accent Pink */
.line-2 { color: #ffc048; } /* Accent Gold */
.line-3 { color: #ffffff; } /* Pure White */

/* --- BREADCRUMB COMPONENT --- */
.breadcrumb {
    margin-bottom: 25px;
    font-family: 'Lexend Exa', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    hyphens: none;
}

.breadcrumb a {
    color: #ff6b9d; /* Accent Pink */
    transition: 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.6);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumb .current {
    color: #d5c8af;
    opacity: 0.8;
}

/* 6. ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes menuSlide {
    from { opacity: 0; transform: translateY(-5px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Staggering Animation Entry */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; } /* FIXED: Added missing 4th card delay step */

/* 7. RESPONSIVE (MOBILE & TABLET) */
@media (max-width: 1000px) {
    .interface { 
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
        max-width: 450px; 
    }
}

@media (max-width: 600px) {
    .interface { 
        grid-template-columns: 1fr; 
        max-width: 220px; 
    }
    .title h1 { 
        font-size: 2.5rem; 
    }
}