/* Creators Page Styles */

/* Page Header */
.creators-header {
    margin-bottom: 2rem;
}

.creators-header .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.creators-header .page-subtitle {
    color: var(--mid-gray);
    font-size: 1rem;
}

/* Creator Dashboard Link */
#creator-dashboard-link-container {
    text-align: center;
    margin-bottom: 2rem;
}

/* Creator Button */
.creator-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    border-radius: 100px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.creator-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
    color: white;
}

.creator-button svg {
    width: 20px;
    height: 20px;
}

/* Pending Approval Box */
#creator-pending-approval {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    margin: auto;
}

#creator-pending-approval h3 {
    color: var(--light-gray);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

#creator-pending-approval p {
    color: var(--mid-gray);
}

/* Creator Profiles Grid */
#creator-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 100px;
}

/* Creator Profile Card - Camera Card Style */
.creator-profile-card {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #1e293b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.creator-profile-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.4);
    filter: brightness(1.1);
}

.creator-profile-card .card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.creator-profile-card .card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.creator-profile-card .creator-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 3;
}

.creator-profile-card .creator-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.creator-profile-card .creator-card-info h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}

.creator-profile-card .location-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.creator-profile-card .location-text svg {
    width: 14px;
    height: 14px;
}

.creator-profile-card .creator-badge {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.4);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.creator-profile-card .creator-badge::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: creatorPulse 2s infinite;
}

@keyframes creatorPulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 8px #4ade80;
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 12px #4ade80;
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 8px #4ade80;
    }
}

.creator-profile-card .creator-arrow-icon {
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.creator-profile-card:hover .creator-arrow-icon {
    transform: translateX(4px);
    background: rgba(255,255,255,0.3);
}

/* Mobile adjustments for creator cards */
@media (max-width: 640px) {
    #creator-profiles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .creator-profile-card {
        height: 180px;
    }

    .creator-profile-card .creator-card-info h3 {
        font-size: 1.25rem;
    }
}

/* Creator Profile Modal */
#creatorProfileModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

#creatorProfileModal .modal-content-wrapper {
    background: rgba(30, 30, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    position: relative;
    padding: 0;
}

#creatorProfileModal .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

#creatorProfileModal .modal-media-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(44, 62, 80, 0.3);
}

#creatorProfileModal .modal-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#creatorProfileModal .modal-media-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#creatorProfileModal #creatorModalName {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

#creatorProfileModal .detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--mid-gray);
    font-size: 0.95rem;
    justify-content: center;
}

#creatorProfileModal .detail-item svg {
    color: #ff6b6b;
}

#creatorProfileModal .modal-media-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    flex-wrap: wrap;
}

/* Modal buttons */
#creatorProfileModal .buy-now-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.875rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

#creatorProfileModal #modal-view-content-btn {
    background: var(--gradient-primary);
}

#creatorProfileModal #modal-book-now-btn {
    background: var(--gradient-secondary);
}

#creatorProfileModal .buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#creatorProfileModal .favorite-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--mid-gray);
}

#creatorProfileModal .favorite-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
}

/* Loading and Empty States */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: var(--mid-gray);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--mid-gray);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #creator-profiles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .creator-profile-card .media-thumbnail {
        height: 180px;
    }

    #creatorProfileModal .modal-content-wrapper {
        max-width: 95%;
        margin: 1rem;
    }

    #creatorProfileModal .modal-media-container {
        height: 200px;
    }

    #creatorProfileModal .modal-media-actions {
        flex-direction: column;
    }

    #creatorProfileModal .buy-now-btn {
        width: 100%;
    }

    #creatorProfileModal .favorite-btn {
        align-self: center;
    }
}
