/* Community Styles */
.community-hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    position: relative;
    overflow: hidden;
}

.community-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    opacity: 0.1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    color: var(--dark-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platforms-section {
    padding: 5rem 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.platform-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.2);
}

.platform-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.platform-icon.discord {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
}

.platform-icon.github {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.platform-icon.forum {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.platform-content h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.platform-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--dark-muted);
    font-size: 0.9rem;
}

.platform-stats i {
    width: 16px;
}

.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
}

.btn-discord:hover {
    background: #4752C4;
    color: white;
}

.discussions-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin: 0;
}

.discussions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.discussion-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.discussion-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.discussion-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(67, 97, 238, 0.2);
}

.discussion-author h6 {
    margin: 0;
    font-weight: 600;
}

.discussion-author small {
    font-size: 0.85rem;
}

.discussion-badge {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.discussion-badge.solved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.discussion-badge.trending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.discussion-badge.official {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.discussion-body h5 {
    margin-bottom: 1rem;
}

.discussion-body h5 a {
    color: var(--dark-text);
    text-decoration: none;
}

.discussion-body h5 a:hover {
    color: var(--primary-color);
}

.discussion-excerpt {
    color: var(--dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.discussion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.discussion-footer {
    display: flex;
    justify-content: space-between;
    color: var(--dark-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.discussion-footer span {
    display: flex;
    align-items: center;
}

.discussion-footer i {
    width: 14px;
    margin-right: 0.25rem;
}

.events-section {
    padding: 5rem 0;
}

.events-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.event-date {
    text-align: center;
    min-width: 80px;
}

.event-day {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.event-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-content {
    flex: 1;
}

.event-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.event-badge.live {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.event-badge.ama {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.event-badge.workshop {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.event-content h5 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.event-desc {
    color: var(--dark-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--dark-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.event-meta span {
    display: flex;
    align-items: center;
}

.event-meta i {
    width: 16px;
    margin-right: 0.5rem;
}

.leaders-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.leader-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.leader-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.leader-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(67, 97, 238, 0.2);
}

.leader-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.leader-badge.top {
    background: #FFD700;
    color: #000;
}

.leader-badge.moderator {
    background: var(--primary-color);
    color: white;
}

.leader-badge.expert {
    background: #10b981;
    color: white;
}

.leader-content h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.leader-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.leader-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.leader-stats .stat {
    text-align: center;
}

.leader-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.leader-stats .stat-label {
    font-size: 0.85rem;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leader-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.leader-tags .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.guidelines-section {
    padding: 5rem 0;
}

.guidelines-card {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    border-radius: 30px;
    padding: 3rem;
}

.guidelines-list {
    margin-top: 2rem;
}

.guideline-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.guideline-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.guideline-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.guideline-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.community-cta {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
}

.community-cta h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.community-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Light Mode Styles */
.light-mode .community-hero {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.light-mode .platform-card,
.light-mode .discussion-card,
.light-mode .event-card,
.light-mode .leader-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .platform-card:hover,
.light-mode .discussion-card:hover,
.light-mode .event-card:hover,
.light-mode .leader-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.1);
}

.light-mode .discussion-body h5 a {
    color: var(--light-text);
}

.light-mode .discussion-excerpt {
    color: var(--light-muted);
}

.light-mode .discussion-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--light-muted);
}

.light-mode .guidelines-card {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.light-mode .guideline-item {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .guideline-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.light-mode .community-cta {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .community-cta p {
    color: var(--light-text);
}

/* Responsive */
@media (max-width: 768px) {
    .community-hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .event-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .event-date {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: auto;
    }
    
    .event-day,
    .event-month {
        display: inline-block;
    }
    
    .event-day {
        font-size: 2rem;
    }
    
    .guidelines-card {
        padding: 2rem;
    }
    
    .guideline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .platforms-grid,
    .discussions-grid,
    .leaders-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .discussion-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}