/* ===================================
   JIMA MODELS AGENCY - PRODUCTION STYLES
   Additional styles for dynamic features
   =================================== */

/* Hero Section with Video Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 80px;
    background: #1a1a1a !important;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: #fff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-text {
    color: rgba(255,255,255,0.9) !important;
    max-width: 700px;
    margin: 0 auto 48px;
}

.hero-image {
    display: none !important;
}

/* Hero Buttons - visible on video background */
.hero .btn-primary {
    background: var(--gold, #D4AF37) !important;
    color: #1a1a1a !important;
    border: none;
    padding: 16px 40px;
    font-weight: 600;
}

.hero .btn-primary:hover {
    background: #e8c547 !important;
    transform: translateY(-2px);
}

.hero .btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
    padding: 14px 38px;
    font-weight: 600;
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #fff !important;
    transform: translateY(-2px);
}

.hero .hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading Screen with Beautiful Model Background */
.loader {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(20,15,10,0.8) 100%), 
                url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?w=1920&h=1080&fit=crop&q=80') center/cover no-repeat !important;
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.loader-text {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);
}

.theme-toggle .icon {
    display: block;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background: var(--gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.model-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.model-image {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 3:4.5 aspect ratio */
    overflow: hidden;
    background: var(--warm-beige);
}

.model-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-card:hover .model-image img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.status-available {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.status-busy {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.status-exclusive {
    background: rgba(212, 175, 55, 0.9);
    color: var(--text-dark);
}

.model-info {
    padding: 24px;
}

.model-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.model-stats {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.model-location {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.model-languages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lang-badge {
    padding: 4px 10px;
    background: var(--light-gold);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-dark);
}

.btn-view-profile {
    width: 100%;
    padding: 12px;
    background: var(--gold);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-profile:hover {
    background: var(--text-dark);
    color: var(--gold);
    transform: translateY(-2px);
}

/* Loading State */
.loading,
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-medium);
    font-size: 18px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--warm-beige);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Client Portal Button (dynamically created) */
#clientPortalBtn {
    background: var(--gold) !important;
    color: #000000 !important;
    padding: 14px 32px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1.2px;
    border: 2px solid var(--gold) !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

#clientPortalBtn:hover {
    background: var(--text-dark) !important;
    color: var(--gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
    border-color: var(--text-dark) !important;
}

[data-theme="dark"] #clientPortalBtn {
    background: var(--gold) !important;
    color: #000000 !important;
    border: 2px solid var(--gold) !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5);
    font-weight: 700;
}

[data-theme="dark"] #clientPortalBtn:hover {
    background: #F5F0E6 !important;
    color: #000000 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Dark Mode Model Cards */
[data-theme="dark"] .model-card {
    background: var(--warm-beige);
}

[data-theme="dark"] .model-info h3 {
    color: var(--white);
}

[data-theme="dark"] .model-stats,
[data-theme="dark"] .model-location {
    color: var(--text-light);
}

[data-theme="dark"] .lang-badge {
    background: var(--primary-beige);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Client Portal Active State */
.client-portal.active {
    visibility: visible;
    opacity: 1;
}

.client-portal {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Filter Buttons */
.filter-btn {
    padding: 10px 20px;
    background: var(--cream);
    border: 1px solid var(--warm-beige);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: var(--text-dark);
    border-color: var(--gold);
    transform: translateY(-2px);
}

[data-theme="dark"] .filter-btn {
    background: var(--primary-beige);
    border-color: var(--warm-beige);
    color: var(--white);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--gold);
    color: var(--text-dark);
}
