/* 
 * FKK Point Bruchsal - Gallery Page Styles
 * Extends the main styles with gallery-specific styling
 */

/* Gallery Hero Section */
.gallery-hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/gallery-hero.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Accounts for fixed header */
}

.gallery-hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    color: var(--white);
}

.gallery-hero p {
    font-size: 1.5rem;
    color: var(--light-gold);
    max-width: 800px;
    margin: 0 auto;
}

/* Background circles for gallery hero */
.gallery-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: var(--primary-red);
    border-radius: 50%;
    opacity: 0.1;
    top: -100px;
    left: -100px;
    z-index: 1;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--gold);
    border-radius: 50%;
    opacity: 0.1;
    bottom: -100px;
    right: -50px;
    z-index: 1;
}

/* Gallery Categories Section */
.gallery-categories {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

/* Background circles for gallery categories */
.gallery-categories::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(209, 10, 16, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    z-index: 1;
}

/* Categories Grid */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.category-button {
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button:hover,
.category-button.active {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Main Gallery Section */
.main-gallery {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Background circles for main gallery */
.main-gallery::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    bottom: -175px;
    left: -175px;
    z-index: 1;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-subtitle {
    color: var(--gold);
    font-size: 0.9rem;
}

/* Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    padding-top: 60px;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    animation: zoom 0.6s;
    position: relative;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.lightbox-image {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-description {
    margin: 20px auto;
    text-align: center;
    width: 80%;
    color: #ccc;
    max-width: 800px;
}

.lightbox-title {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--gold);
    background-color: rgba(0,0,0,0.5);
}

/* Girls Gallery Section */
.gallery-girls {
    background-color: var(--light-gray);
    color: var(--black);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background circles for girls gallery */
.gallery-girls::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(209, 10, 16, 0.05);
    border-radius: 50%;
    top: -150px;
    left: -100px;
    z-index: 1;
}

.gallery-girls::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
    bottom: -100px;
    right: -50px;
    z-index: 1;
}

/* Girls Gallery Grid */
.girls-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Girl Gallery Item */
.girl-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.girl-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.girl-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.girl-gallery-item:hover img {
    transform: scale(1.1);
}

.girl-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.girl-gallery-name {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 5px;
}

.girl-gallery-info {
    font-size: 0.9rem;
    color: var(--gold);
}

/* Video Tour Section */
.gallery-video-tour {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background circles for video tour */
.gallery-video-tour::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: rgba(209, 10, 16, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 1;
}

.gallery-video-tour::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    z-index: 1;
}

/* Video Container */
.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.video-container video {
    width: 100%;
    display: block;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 50px 0;
    color: var(--white);
}

.loading::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .gallery-categories,
    .main-gallery,
    .gallery-girls,
    .gallery-video-tour {
        padding: 70px 0;
    }
    
    .video-container {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .gallery-hero h1 {
        font-size: 3rem;
    }
    
    .gallery-hero p {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-categories,
    .main-gallery,
    .gallery-girls,
    .gallery-video-tour {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 300px;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-hero p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .girls-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .gallery-categories,
    .main-gallery,
    .gallery-girls,
    .gallery-video-tour {
        padding: 50px 0;
    }
    
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-navigation {
        display: none; /* Hide on mobile for more space */
    }
}

@media (max-width: 576px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .category-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .girls-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-title {
        font-size: 1rem;
    }
    
    .girl-gallery-name {
        font-size: 1.1rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}