/* Community Creation Section - 2 rows 4 columns layout */
.section_community_creation {
    padding: 5rem 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    /* Use background image by default on PC */
    background-image: url('../../images/community/community-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section_community_creation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.community_creation_container {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
    gap: 3rem;
}

.community_creation_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
    align-items: center;
}

.community_creation_footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.creation_card {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 0.6s ease forwards;
}

.creation_content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 320px;
    position: relative;
}

.creation_content:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.5);
}

.creation_image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    display: block;
    background: #f8f9fa;
    flex-shrink: 0;
}

.creation_text {
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
}

.creation_title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-align: center;
}

.creation_description {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community_creation_title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

.community_art_button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.community_art_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.community_art_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;
}

.community_art_button:hover:before {
    left: 100%;
}

/* Animation Effects */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.creation_card:nth-child(1) { animation-delay: 0.1s; }
.creation_card:nth-child(2) { animation-delay: 0.2s; }
.creation_card:nth-child(3) { animation-delay: 0.3s; }
.creation_card:nth-child(4) { animation-delay: 0.4s; }
.creation_card:nth-child(5) { animation-delay: 0.5s; }
.creation_card:nth-child(6) { animation-delay: 0.6s; }
.creation_card:nth-child(7) { animation-delay: 0.7s; }
.creation_card:nth-child(8) { animation-delay: 0.8s; }

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 4px 30px rgba(255, 255, 255, 0.6);
    }
}

/* Responsive Design - Simplified Version */

/* Large screens (1200px+) */
@media screen and (min-width: 1200px) {
    .community_creation_grid {
        gap: 2.5rem;
        max-width: 1200px;
    }
    
    .creation_card {
        max-width: 300px;
    }
    
    .creation_content {
        height: 340px;
    }
    
    .creation_image {
        height: 220px;
    }
    
    .community_creation_title {
        font-size: 3.5rem;
    }
}

/* Medium screens (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .community_creation_grid {
        gap: 2rem;
        max-width: 1000px;
    }
    
    .creation_card {
        max-width: 280px;
    }
    
    .creation_content {
        height: 320px;
    }
    
    .creation_image {
        height: 200px;
    }
    
    .community_creation_title {
        font-size: 3rem;
    }
}

/* Tablets (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .community_creation_grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .creation_card {
        max-width: 280px;
    }
    
    .creation_content {
        height: 300px;
    }
    
    .creation_image {
        height: 180px;
    }
    
    .community_creation_title {
        font-size: 2.8rem;
    }
}

/* Mobile (less than 767px) */
@media screen and (max-width: 767px) {
    .section_community_creation {
        padding: 4rem 0;
        background-image: none; /* Remove background image */
        background: linear-gradient(150deg, #1c2a4f, #131d3a); /* AI-style gradient background */
        min-height: auto;
    }
    
    .community_creation_container {
        min-height: auto;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .community_creation_grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
        gap: 1.5rem;
        max-width: 350px;
    }
    
    .creation_card {
        max-width: 320px;
    }
    
    .creation_content {
        height: 280px;
    }
    
    .creation_image {
        height: 160px;
    }
    
    .creation_text {
        padding: 1rem;
    }
    
    .creation_title {
        font-size: 1.1rem;
    }
    
    .creation_description {
        font-size: 0.9rem;
    }
    
    .community_creation_title {
        font-size: 2rem;
    }
    
    .community_art_button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small screen phones (below 480px) */
@media screen and (max-width: 480px) {
    .section_community_creation {
        padding: 2rem 0;
    }
    
    .community_creation_container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .community_creation_grid {
        gap: 1.25rem;
        max-width: 300px;
    }
    
    .creation_card {
        max-width: 280px;
    }
    
    .creation_content {
        height: 260px;
    }
    
    .creation_image {
        height: 140px;
    }
    
    .creation_text {
        padding: 0.875rem;
    }
    
    .creation_title {
        font-size: 1rem;
    }
    
    .creation_description {
        font-size: 0.85rem;
    }
    
    .community_creation_title {
        font-size: 1.6rem;
    }
    
    .community_art_button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .creation_content:hover {
        transform: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    .creation_content:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .community_art_button:hover {
        transform: none;
    }
    
    .community_art_button:active {
        transform: scale(0.95);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .creation_card {
        animation: none;
    }
    
    .community_creation_title {
        animation: none;
    }
    
    .creation_content {
        transition: none;
    }
    
    .community_art_button {
        transition: none;
    }
} 

/* --- Responsive --- */

@media screen and (max-width: 768px) {
    .section_community_creation {
        /* Use dark gradient on mobile */
        background-image: none;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3a3a3a 100%);
        color: #ffffff;
    }

    .community_creation_grid {
        grid-template-columns: 1fr;
    }
} 