/* Community Page Styles */
@import url('landing_unified.css');


/* WebGL Background */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0.6;
    /* Slight fade to keep content readable */
}

.community-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* overflow: hidden; Removed to let 3D show through if needed, but fixed bg handles it */
    z-index: 2;
    /* Sit above the 3D globe */
}

.network-bg {
    /* REMOVED: Replaced by Three.js Globe */
    display: none;
}

.title-xl {
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.center-text {
    text-align: center;
}

/* Social Grid */
.social-section {
    padding: 100px 0;
    margin-top: -80px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.social-card {
    background: rgba(10, 10, 10, 0.6);
    /* Increased opacity for better contrast */
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    color: #ffffff !important;
    /* Force white text */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 260px;
    overflow: hidden;
}

/* REMOVED: Burst/Shine Animation (::after) per user request */

.social-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(20, 20, 20, 0.8);
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #fff;
    opacity: 0;
    transition: 0.3s;
}

.social-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card.telegram:hover::before {
    background: #0088cc;
}

.social-card.twitter:hover::before {
    background: #fff;
}

.social-card.discord:hover::before {
    background: #5865F2;
}

.card-icon {
    /* SVG size managed inline */
    opacity: 0.7;
    margin-bottom: 20px;
}

.platform-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 0;
}

.stats {
    margin-top: auto;
    padding-top: 20px;
}

.stats .count {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.stats .label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-arrow {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.3s;
}

.social-card:hover .join-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* Ambassador */
.ambassador-section {
    padding: 150px 0;
    background: linear-gradient(to bottom, #050505, #0a0a0a);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.text-col {
    flex: 1;
}

.visual-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.shield-graphic {
    width: 300px;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-core {
    width: 200px;
    height: 240px;
    background: transparent;
    border: 2px solid var(--accent-red);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 2;
    box-shadow: 0 0 30px rgba(255, 59, 48, 0.3);
}

.shield-pulse {
    position: absolute;
    width: 240px;
    height: 280px;
    border: 1px solid rgba(255, 59, 48, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: pulseShield 3s infinite;
}

@keyframes pulseShield {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}


/* Events */
.events-section {
    padding: 100px 0;
}

.timeline {
    max-width: 800px;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.event-item {
    display: flex;
    gap: 40px;
    position: relative;
}

.event-date {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-family: var(--font-mono);
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.event-date .month {
    font-size: 0.8rem;
    color: var(--accent-orange);
}

.event-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    padding: 30px;
    border-radius: 20px;
    /* More rounded */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.event-info h3 {
    margin: 0 0 10px 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.event-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 15px;
    font-family: var(--font-mono);
}

.event-status.live {
    background: var(--accent-red);
    color: #000;
}

.event-status:not(.live) {
    border: 1px solid #444;
    color: #888;
}

/* Footer */
.main-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #444;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column-reverse;
        /* Shield on top? No, visual usually better bottom or top. Text top is good. */
        gap: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .event-item {
        gap: 20px;
    }

    .event-date {
        width: 60px;
        height: 60px;
    }

    .event-date .day {
        font-size: 1.2rem;
    }

    .event-date .month {
        font-size: 0.6rem;
    }
}