/* ==========================================================================
   WHAT THE FUCK CLAN - ULTRA iOS GLASSMORPHISM & MATTE BLACK DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Color Variables */
    --bg-matte-black: #060608;
    --bg-surface-dark: #0d0d12;
    
    /* Advanced iOS Glass Transparency Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-bg-active: rgba(255, 255, 255, 0.12);
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-bright: rgba(255, 255, 255, 0.22);
    --glass-border-glow: rgba(255, 255, 255, 0.35);

    --glass-blur-sm: blur(12px) saturate(160%);
    --glass-blur-md: blur(25px) saturate(180%);
    --glass-blur-lg: blur(40px) saturate(200%);

    /* Role Accent Tokens */
    --color-owner: #ff3b30;
    --color-sniper: #0a84ff;
    --color-onetap: #ff9f0a;
    --color-rusher: #ff453a;
    --color-healer: #30d158;
    
    /* Social Accents */
    --color-whatsapp: #25d366;
    --color-discord: #5865f2;

    /* Text System */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

/* Base Reset & Core Body Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-matte-black);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 40px;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-matte-black);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 2px solid var(--bg-matte-black);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   INTERACTIVE CANVAS & AMBIENT GLOW ORBS
   ========================================================================== */
#glassParticleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    animation: orbPulse 12s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: var(--color-owner);
}

.orb-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--color-discord);
}

.orb-3 {
    bottom: -10%;
    left: 20%;
    width: 550px;
    height: 550px;
    background: var(--color-whatsapp);
}

@keyframes orbPulse {
    0% { transform: scale(0.8) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.1) translate(30px, -20px); opacity: 0.2; }
    100% { transform: scale(0.9) translate(-20px, 30px); opacity: 0.12; }
}

/* ==========================================================================
   FLOATING GLASS BUBBLES
   ========================================================================== */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.08);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.75; }
    90% { opacity: 0.75; }
    100% {
        transform: translateY(-135vh) scale(1.3) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   iOS GLASS NAVIGATION BAR
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1100px;
    height: 64px;
    background: rgba(13, 13, 18, 0.55);
    backdrop-filter: var(--glass-blur-md);
    -webkit-backdrop-filter: var(--glass-blur-md);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav.scrolled {
    background: rgba(8, 8, 12, 0.85);
    border-color: var(--glass-border-bright);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.8rem;
}

.nav-logo {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-accent {
    color: var(--color-owner);
    text-shadow: 0 0 12px rgba(255, 59, 48, 0.6);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ==========================================================================
   MAIN CONTAINER & CARD SYSTEM
   ========================================================================== */
.main-wrapper {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-lg);
    -webkit-backdrop-filter: var(--glass-blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.8rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.glass-card:hover {
    border-color: var(--glass-border-bright);
}

/* Glass Shimmer Animation Line */
.glass-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 55%
    );
    transform: rotate(30deg);
    pointer-events: none;
    animation: shimmerSweep 8s infinite linear;
}

@keyframes shimmerSweep {
    0% { transform: translateY(-100%) rotate(30deg); }
    100% { transform: translateY(100%) rotate(30deg); }
}

/* Interactive Glass Boxes */
.glass-box, .glass-box-interactive, .glass-box-large {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-box-interactive:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-bright);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-card {
    padding: 2rem;
}

.hero-banner-container {
    width: 100%;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 6, 8, 0.1) 0%, rgba(6, 6, 8, 0.85) 100%);
}

.live-status-pill {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border-bright);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-dot.pulsing {
    width: 9px;
    height: 9px;
    background-color: var(--color-healer);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-healer);
    animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-content {
    text-align: center;
    margin-top: 2rem;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.glow-text {
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.hero-subtitle {
    color: var(--color-owner);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-top: 0.4rem;
    margin-bottom: 1.2rem;
}

.hero-description {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.2rem auto;
    font-size: 1rem;
    line-height: 1.65;
}

/* Stats Counter Grid */
.clan-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.8rem;
}

.stat-box {
    padding: 1.2rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.stat-plus {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-owner);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 600;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
    margin-bottom: 2.2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.icon-glow {
    color: var(--color-owner);
    filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.5));
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.text-center {
    text-align: center;
    justify-content: center;
}

/* ==========================================================================
   DIVISIONS / GAMES GRID
   ========================================================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.game-card {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.game-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.game-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.game-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.glass-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   OWNER & LEADERSHIP SECTION
   ========================================================================== */
.owner-featured-card {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    padding: 2.2rem;
}

.owner-avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.owner-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 2;
}

.owner-glow-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-owner) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(12px);
    z-index: 1;
    animation: glowPulse 3s infinite alternate ease-in-out;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

.owner-info {
    flex-grow: 1;
}

.owner-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.owner-name {
    font-size: 1.8rem;
    font-weight: 800;
}

.owner-bio {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.owner-details-grid {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-box .lbl {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-box .val {
    font-size: 0.9rem;
    font-weight: 700;
}

.detail-box .val.highlight {
    color: var(--color-whatsapp);
}

.detail-box .val.online {
    color: var(--color-healer);
}

.owner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   ROSTER & ROLE STYLING
   ========================================================================== */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.player-card {
    padding: 1.5rem;
}

.player-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.avatar-frame {
    position: relative;
    width: 80px;
    height: 80px;
}

.player-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.player-body {
    text-align: center;
}

.player-name {
    font-size: 1.15rem;
    font-weight: 800;
}

.player-game-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

/* Glass Pill Roles */
.glass-pill {
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
}

.role-pill {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.5px;
}

.pill-owner { background: rgba(255, 59, 48, 0.2); color: var(--color-owner); border: 1px solid rgba(255, 59, 48, 0.4); }
.pill-sniper { background: rgba(10, 132, 255, 0.2); color: var(--color-sniper); border: 1px solid rgba(10, 132, 255, 0.4); }
.pill-onetap { background: rgba(255, 159, 10, 0.2); color: var(--color-onetap); border: 1px solid rgba(255, 159, 10, 0.4); }
.pill-rusher { background: rgba(255, 69, 58, 0.2); color: var(--color-rusher); border: 1px solid rgba(255, 69, 58, 0.4); }
.pill-healer { background: rgba(48, 209, 88, 0.2); color: var(--color-healer); border: 1px solid rgba(48, 209, 88, 0.4); }

/* Skill Meters */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: left;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, var(--text-secondary));
    border-radius: 10px;
}

/* ==========================================================================
   COMMUNITY & BUTTONS
   ========================================================================== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.8rem;
}

.community-card {
    padding: 2.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comm-icon-wrapper {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.whatsapp-theme .comm-icon-wrapper { color: var(--color-whatsapp); filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.4)); }
.discord-theme .comm-icon-wrapper { color: var(--color-discord); filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.4)); }

.community-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.community-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

/* Universal Glass Button Engine */
.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 1.8rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border-bright);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.btn-nav-glow {
    padding: 0.5rem 1.2rem;
    font-size: 0.82rem;
    border-radius: 14px;
}

.btn-whatsapp-direct, .btn-whatsapp-community {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.35);
}
.btn-whatsapp-direct:hover, .btn-whatsapp-community:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: var(--color-whatsapp);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
}

.btn-discord-direct, .btn-discord-community {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.35);
}
.btn-discord-direct:hover, .btn-discord-community:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: var(--color-discord);
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.4);
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 2.5rem 1rem 1rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 10;
}

.footer-subtext {
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

/* ==========================================================================
   RESPONSIVE MOBILE BREAKPOINTS
   ========================================================================== */
@media (max-width: 868px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 90%;
        background: rgba(13, 13, 18, 0.95);
        backdrop-filter: var(--glass-blur-lg);
        border: 1px solid var(--glass-border-bright);
        border-radius: 24px;
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .mobile-toggle-btn { display: block; }
    .owner-featured-card { flex-direction: column; text-align: center; }
    .owner-header-row { justify-content: center; }
    .owner-details-grid { justify-content: center; }
    .owner-actions { justify-content: center; }
    .hero-title { font-size: 2.6rem; }
}