/* ===== CREATORS CAROUSEL STYLES ===== */

/* Creators Carousel Specific Styles */
.creators-swiper .swiper-slide {
    padding: 0.5rem;
}

/* Horizontal Scrollbar Styling */
.creators-swiper-scrollbar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 6px;
    margin-top: 30px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.creators-swiper-scrollbar .swiper-scrollbar-drag {
    background: var(--accent-color);
    border-radius: 10px;
    cursor: pointer;
}

.creators-swiper-scrollbar .swiper-scrollbar-drag:hover {
    background: #8a2be2;
}

/* Navigation Arrows */
.creators-swiper-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    padding: 0 20px;
}

.creators-swiper-button-prev,
.creators-swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 18px;
}

.creators-swiper-button-prev:hover,
.creators-swiper-button-next:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.creators-swiper-button-prev.swiper-button-disabled,
.creators-swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .creators-swiper-navigation {
        display: none; /* Hide arrows on mobile, use swipe gesture */
    }
}

/* Single Creator Spotlight Card */
.creator-card {
    background: var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 350px;
    max-width: 800px;
    margin: 0 auto;
}

.creator-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(194, 0, 251, 0.4);
}

.creator-card-image {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.creator-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.creator-card:hover .creator-card-image img {
    transform: scale(1.05);
}

.creator-stats-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    border: 2px solid var(--accent-color);
}

.creator-stats-overlay .platform-icon {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.creator-card-content {
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.creator-card-header {
    text-align: left;
}

.creator-card-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    font-family: var(--font-1);
    color: white;
    line-height: 1.2;
}

.creator-card-category {
    font-size: 1rem;
    color: var(--accent-color);
    margin: 0 0 20px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creator-card-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creator-card-cta {
    margin-top: auto;
    padding-top: 20px;
}

.creator-card-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creator-card-button:hover {
    background: white;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Mobile Responsive Design - Simplified Card Layout */
@media (max-width: 768px) {
    .creator-card {
        display: block;
        grid-template-columns: none;
        max-width: 100%;
        min-height: auto;
        background: var(--secondary-color);
        border-radius: 10px;
        overflow: hidden;
        border: 2px solid transparent;
    }

    .creator-card:hover {
        border-color: var(--accent-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(194, 0, 251, 0.3);
    }

    .creator-card-image {
        min-height: 270px;
        height: 270px;
        position: relative;
    }

    .creator-card-content {
        padding: 15px 15px;
        background-color: var(--secondary-color);
        color: white;
        text-align: center;
        min-height: 65px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .creator-card-header {
        text-align: center;
        margin: 0;
    }

    .creator-card-name {
        font-size: 1.2rem;
        margin: 0 0 5px 0;
        color: white;
        font-family: var(--font-1);
        font-weight: 600;
        line-height: 1.2;
    }

    .creator-card-category {
        font-size: 0.85rem;
        color: var(--accent-color);
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        line-height: 1.2;
    }

    /* Hide bio and CTA on mobile for cleaner look */
    .creator-card-bio,
    .creator-card-cta {
        display: none;
    }

    .creator-stats-overlay {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 0.8rem;
        border: 1px solid var(--accent-color);
    }
}

/* ===== DYNAMIC CREATORS GRID STYLES ===== */

.creators-dynamic-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1400px; /* Limit maximum width for very large screens */
}

/* Fixed card dimensions for consistency */
.creator-card-wrapper {
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
}

/* Mobile responsive - single column on small screens */
@media (max-width: 767px) {
    .creators-dynamic-container {
        gap: 1rem;
    }
    
    .creator-card-wrapper {
        width: 100%;
        max-width: 350px;
    }
}

/* Tablet responsive - 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .creator-card-wrapper {
        width: calc(50% - 0.75rem);
        min-width: 280px;
    }
}

/* Desktop responsive - dynamic columns based on space */
@media (min-width: 992px) {
    .creators-dynamic-container {
        gap: 1.5rem;
    }
    
    .creator-card-wrapper {
        width: 280px;
    }
}

/* Large screens - ensure maximum 4 cards per row */
@media (min-width: 1400px) {
    .creator-card-wrapper {
        width: 300px;
    }
}

/* Ensure team containers fill their wrapper */
.creator-card-wrapper .team-container {
    height: 100%;
    width: 100%;
}

/* Enhanced centering for optimal visual balance */
.creators-section .r-container {
    max-width: 1400px;
}

/* Animation for better UX when cards load */
.creator-card-wrapper {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.creator-card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.creator-card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.creator-card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.creator-card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.creator-card-wrapper:nth-child(5) { animation-delay: 0.5s; }
.creator-card-wrapper:nth-child(6) { animation-delay: 0.6s; }
.creator-card-wrapper:nth-child(7) { animation-delay: 0.7s; }
.creator-card-wrapper:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special handling for odd numbers of cards */
.creators-dynamic-container[data-count="1"] {
    justify-content: center;
}

.creators-dynamic-container[data-count="2"] {
    justify-content: center;
}

.creators-dynamic-container[data-count="3"] {
    justify-content: center;
}

/* Enhanced styling for better visual hierarchy */
.creators-dynamic-container .team-container {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.creators-dynamic-container .team-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(194, 0, 251, 0.3);
}

/* ===== CREATORS PAGE SPECIFIC STYLES ===== */

/* Creator stats overlay (follower count + platform icon) */
.creator-stats {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    z-index: 2 !important;
}

.creator-stats .platform-icon {
    color: var(--accent-color) !important;
}

.follower-count {
    font-weight: 700 !important;
}

/* Engagement rate badge */
.creator-engagement {
    margin-top: 0.5rem;
}

.engagement-rate {
    background: linear-gradient(135deg, var(--accent-color), #00a86b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Ensure team image container works with overlay */
.team-image {
    position: relative;
}

/* Optional: Add hover effect to creator stats */
.team-container:hover .creator-stats {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* KICK ICON STYLES */
.kick-icon {
    width: 20px;
    height: 20px;
    background-image: url('/image/kick-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    display: inline-block;
}

/* For larger modal icons */
.social-icon .kick-icon {
    width: 24px;
    height: 24px;
}

/* For creator stats overlay */
.creator-stats .kick-icon {
    width: 16px;
    height: 16px;
}

/* Ensure consistent sizing in all contexts */
.social-item .kick-icon,
.team-social .kick-icon {
    width: 16px;
    height: 16px;
}

/* Clickable creator cards */
.team-container {
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(194, 0, 251, 0.3);
}

.social-item img[alt="Kick"] {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-item:hover img[alt="Kick"] {
    filter: brightness(0) saturate(100%) invert(19%) sepia(84%) saturate(7482%) hue-rotate(274deg) brightness(96%) contrast(113%);
}

.social-icon.kick img[alt="Kick"] {
    width: 20px;
    height: 20px;
    filter: none;
}

/* Mobile Instructions */
.mobile-tap-hint {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 3;
}

/* MOBILE SOCIAL ICONS FIX */
/* On mobile, make social icons always visible on the side (same position as desktop hover) */
@media (max-width: 768px) {
    .team-container .team-social {
        transform: translateX(0) !important;
    }

    .team-social .social-item {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        font-size: 18px !important;
    }

    /* Remove hover requirement on mobile */
    .team-container:hover .team-social {
        transform: translateX(0) !important;
    }

    .mobile-tap-hint {
        display: block;
    }

    .creator-card {
        height: 350px;
    }

    .creator-card-image {
        height: 240px;
    }
}