/* Model Profile Page Styles */

.model-profile-page {
    background: #2c2c2c;
}

/* Profile Wrapper */
.profile-wrapper {
    margin-top: 200px; /* Account for header height */
}

/* Profile Hero Section (Details + Featured Image) - LOWER z-index */
.profile-hero {
    background: #2c2c2c;
    position: relative;
    z-index: 1;
    padding: 0;
}

.profile-hero-container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
}

/* Left Side - Profile Details */
.profile-details {
    background: #2c2c2c;
    padding: 120px 80px 30px 120px;
    color: white;
}

.back-link {
    margin-bottom: 40px;
}

.back-link a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link a:hover {
    color: #b66e41;
}

.model-name {
    font-family: var(--primary-font);
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: white;
    position: relative;
}

.model-name::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #b66e41;
    margin-top: 10px;
}

/* Model Stats */
.model-stats {
    margin: 40px 0;
}

.stat-row {
    display: flex;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 300;
}

.stat-label {
    color: white;
    min-width: 80px;
    font-weight: 400;
}

.stat-value {
    color: white;
    font-weight: 300;
}

/* Action Buttons */
.profile-actions {
    display: flex;
    gap: 15px;
    margin: 40px 0;
}

.btn-download {
    padding: 12px 30px;
    background: #d4816f;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--primary-font);
}

.btn-download:hover {
    background: #b66e41;
}

.btn-portfolio,
.btn-camera {
    padding: 12px 20px;
    background: #e8e8e8;
    color: #2c2c2c;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--primary-font);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-portfolio:hover,
.btn-camera:hover {
    background: white;
}

/* Gallery Categories */
.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 50px;
}

.category-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.category-link.active {
    color: #d4816f;
    font-weight: 500;
}

.category-link:hover {
    color: white;
}

/* Right Side - Featured Image */
.featured-image {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Section - HIGHER z-index (Scrolls over details) */
.profile-gallery {
    background: #1a1a1a;
    padding: 60px;
    position: relative;
    z-index: 10;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #333;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Footer for Profile Page */
.model-profile-page footer {
    position: relative;
    z-index: 15;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-hero-container {
        grid-template-columns: 40% 60%;
    }
    
    .profile-details {
        padding: 50px 40px;
    }
    
    .model-name {
        font-size: 48px;
    }
}

@media (max-width: 968px) {
    .profile-wrapper {
        margin-top: 140px;
    }
    
    .profile-hero-container {
        grid-template-columns: 1fr;
    }
    
    .profile-details {
        padding: 40px 30px;
    }
    
    .featured-image {
        min-height: 500px;
    }
    
    .model-name {
        font-size: 40px;
    }
    
    .profile-actions {
        flex-wrap: wrap;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .profile-gallery {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .model-name {
        font-size: 32px;
    }
    
    .stat-row {
        font-size: 14px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .btn-download,
    .btn-portfolio,
    .btn-camera {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-categories {
        gap: 15px;
    }
    
    .category-link {
        font-size: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}