/* Community Section */
.community-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(75, 0, 130, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.community-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.community-link:hover::before {
    left: 100%;
}

.community-link:hover {
    transform: translateX(10px) scale(1.02);
    border-color: rgba(64, 224, 208, 0.4);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.25);
}

.link-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.link-text {
    position: relative;
    z-index: 1;
}

/* Platform-specific styling */
.community-link.twitter:hover {
    border-color: rgba(64, 224, 208, 0.5);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.35);
}

.community-link.telegram:hover {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.35);
}

.community-link.discord:hover {
    border-color: rgba(75, 0, 130, 0.5);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.35);
}

.community-feed {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.community-feed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.08), rgba(138, 43, 226, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.community-feed:hover::before {
    opacity: 1;
}

.community-feed h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.community-feed h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #40e0d0, #20b2aa);
    border-radius: 2px;
}

.feed-placeholder {
    position: relative;
    z-index: 1;
}

.feed-placeholder p {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid #40e0d0;
    transition: all 0.3s ease;
}

.feed-placeholder p:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.feed-placeholder p:last-child {
    margin-bottom: 0;
}

/* Animation for community links */
.community-link {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.community-link:nth-child(1) {
    animation-delay: 0.2s;
}

.community-link:nth-child(2) {
    animation-delay: 0.4s;
}

.community-link:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation for feed */
.community-feed {
    opacity: 1 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    display: block !important;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .community-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .community-links {
        gap: 1.2rem;
    }

    .community-link {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .community-link:hover {
        transform: translateY(-3px) scale(1.02);
    }

    .link-icon {
        font-size: 1.3rem;
    }

    .community-feed {
        padding: 1.5rem;
    }

    .community-feed h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .feed-placeholder p {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .community-content {
        gap: 2rem;
    }

    .community-links {
        gap: 1rem;
    }

    .community-link {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
        gap: 0.8rem;
    }

    .link-icon {
        font-size: 1.2rem;
    }

    .community-feed {
        padding: 1.2rem;
    }

    .community-feed h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .feed-placeholder p {
        font-size: 0.9rem;
        padding: 0.7rem;
        margin-bottom: 0.8rem;
    }
}

/* Special effects for different screen sizes */
@media (min-width: 1200px) {
    .community-content {
        gap: 5rem;
    }

    .community-link {
        padding: 2rem 2.5rem;
        font-size: 1.2rem;
    }

    .community-feed {
        padding: 2.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .community-link,
    .community-feed {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .community-link:hover,
    .feed-placeholder p:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .community-link {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .community-feed {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .feed-placeholder p {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}