/* ===================================
   Discord Page Styles
   =================================== */

/* Hero Section */
.discord-hero {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.discord-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: floatPattern 20s linear infinite;
}

@keyframes floatPattern {
    from { transform: translateY(0); }
    to { transform: translateY(-60px); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Community Stats */
.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Join Section */
.quick-join {
    padding: 3rem 0;
    background: var(--darker-bg);
}

.quick-join-card {
    background: linear-gradient(135deg, #131813 0%, #0f140f 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(88, 101, 242, 0.2);
}

.quick-join-card h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.recommendations {
    display: grid;
    gap: 1.5rem;
}

.rec-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(88, 101, 242, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(88, 101, 242, 0.1);
    transition: all 0.3s ease;
}

.rec-item:hover {
    background: rgba(88, 101, 242, 0.1);
    transform: translateX(5px);
}

.rec-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.rec-text strong {
    color: #5865F2;
    display: block;
    margin-bottom: 0.3rem;
}

/* Discord Servers Section */
.discord-servers {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Server Card */
.server-card {
    background: linear-gradient(135deg, #131813 0%, #0f140f 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(88, 101, 242, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease backwards;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.server-card:nth-child(1) { animation-delay: 0.1s; }
.server-card:nth-child(2) { animation-delay: 0.2s; }
.server-card:nth-child(3) { animation-delay: 0.3s; }
.server-card:nth-child(4) { animation-delay: 0.4s; }
.server-card:nth-child(5) { animation-delay: 0.5s; }
.server-card:nth-child(6) { animation-delay: 0.6s; }

.server-card:hover {
    transform: translateY(-5px);
    border-color: #5865F2;
    box-shadow: 0 20px 40px rgba(88, 101, 242, 0.2);
}

.server-card.featured {
    border-color: rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #1a1f1a 0%, #141914 100%);
}

.server-card.featured:hover {
    border-color: #ffc107;
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.2);
}

.server-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.server-card.featured .server-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.server-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-icon::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: #43b581;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
}

.server-card h3 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.server-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.server-stats span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.server-stats span:first-child {
    color: #5865F2;
    font-weight: 600;
}

.server-description {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.server-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

/* Join Button */
.join-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.join-button:hover::before {
    left: 100%;
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
}

.discord-logo svg {
    width: 20px;
    height: 20px;
}

/* Server Comparison */
.server-comparison {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table table {
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table th {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: rgba(88, 101, 242, 0.05);
}

/* Community Benefits */
.community-benefits {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: linear-gradient(135deg, #131813 0%, #0f140f 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(88, 101, 242, 0.2);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #5865F2;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.3));
}

.benefit-card h3 {
    color: #5865F2;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Community Guidelines */
.community-guidelines {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.guidelines-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.guideline {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05) 0%, transparent 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.1);
    transition: all 0.3s ease;
}

.guideline:hover {
    transform: translateX(10px);
    border-color: #5865F2;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, transparent 100%);
}

.guideline-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.guideline-text h3 {
    color: #5865F2;
    margin-bottom: 0.5rem;
}

.guideline-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .community-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .server-features {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .guideline {
        flex-direction: column;
        text-align: center;
    }
    
    .guideline-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .community-stats {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}