/* CSS Variables */
:root {
    --primary: #00d9ff;
    --primary-dark: #00b8d4;
    --dark: #0a0e1a;
    --dark-light: #0d1425;
    --text: #ffffff;
    --text-light: #d1d5db;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--dark);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

/* Community Page */
.community-page {
    min-height: 100vh;
    padding: 120px 0 80px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 80px;
}

.hero-content {
    text-align: center;
    margin-bottom: 64px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--text), var(--primary), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 32px;
}

/* Stats Section */
.stats-section {
    margin-bottom: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 32px;
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 184, 212, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.stat-icon i {
    color: var(--primary);
    font-size: 1.25rem;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
}

/* Channels Section */
.channels-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 16px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.channel-card {
    padding: 24px;
    cursor: pointer;
}

.channel-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 184, 212, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.channel-card:hover .channel-icon {
    transform: scale(1.1);
}

.channel-icon i {
    color: var(--primary);
    font-size: 1.25rem;
}

.channel-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.channel-card:hover .channel-title {
    color: var(--primary);
}

.channel-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.channel-members {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Discussions Section */
.discussions-section {
    margin-bottom: 80px;
}

.discussions-card {
    padding: 32px;
}

.discussions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.discussions-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    color: var(--text);
}

.discussions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discussion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discussion-item:hover {
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}

.discussion-content {
    flex: 1;
}

.discussion-title {
    color: var(--text);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.discussion-item:hover .discussion-title {
    color: var(--primary);
}

.discussion-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.discussion-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.discussion-replies {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Animation Classes */
.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeIn {
    animation-name: fadeIn;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .stats-grid,
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .community-page {
        padding: 100px 0 60px;
    }

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

    .discussion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .discussion-replies {
        align-self: flex-end;
    }

    .stat-card,
    .channel-card,
    .discussions-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .discussions-title {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}