/* Saklı Bahçe Esenköy - Gallery Styles */

/* CSS Variables for Gallery */
:root {
    --gallery-primary: #b34512;
    --gallery-secondary: #4b6758;
    --gallery-gold: #d4af37;
    --gallery-gold-light: #f4d03f;
    --gallery-gold-dark: #b8860b;
    --gallery-gradient: linear-gradient(135deg, var(--gallery-primary) 0%, var(--gallery-secondary) 100%);
    --gallery-gold-gradient: linear-gradient(135deg, var(--gallery-gold) 0%, var(--gallery-gold-light) 100%);
}

/* Gallery Hero Section */
.gallery-hero {
    min-height: 100dvh;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, var(--gallery-primary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 120px 0 60px 0;
    width: 100%;
    box-sizing: border-box;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23f4d03f" fill-opacity="0.03"%3E%3Ccircle cx="30" cy="30" r="4"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    z-index: 1;
}

.gallery-hero .container {
    position: relative;
    z-index: 2;
}

/* Scroll Mouse Animation */
.scroll-mouse-gallery {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gallery-gold);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.scroll-wheel-gallery {
    width: 6px;
    height: 10px;
    background: var(--gallery-gold);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
    100% { top: 8px; opacity: 1; }
}

/* Filter Buttons */
.filter-btn {
    background: white;
    color: var(--gallery-primary);
    border: 2px solid var(--gallery-primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gallery-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(179, 69, 18, 0.3);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    will-change: transform, opacity;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.hidden {
    display: none;
}

/* Gallery Cards */
.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    background: white;
    aspect-ratio: 4/3;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
    width: 100%;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-description {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Gallery Actions */
.gallery-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-btn:hover {
    background: var(--gallery-gold);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Video Cards */
.video-card {
    transition: all 0.5s ease;
}

.video-card:hover {
    transform: translateY(-8px);
}

.video-play-btn {
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.2);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: lightboxAppear 0.3s ease;
}

@keyframes lightboxAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--gallery-gold);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 -60px;
    z-index: 10;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lightbox-prev {
    transform: translateX(-60px);
}

.lightbox-next {
    transform: translateX(60px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gallery-gold);
    transform: translateX(-60px) scale(1.1);
}

.lightbox-next:hover {
    transform: translateX(60px) scale(1.1);
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
    margin-bottom: 1rem;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    text-align: center;
}

.lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.lightbox-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.lightbox-action-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-action-btn:hover {
    background: var(--gallery-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: videoAppear 0.3s ease;
}

@keyframes videoAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.video-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-close:hover {
    background: var(--gallery-gold);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 80vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 40;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
    padding: 0.75rem 0;
}

.breadcrumb-nav.visible {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: breadcrumbSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.breadcrumb-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    animation: fadeInScale 0.6s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
    opacity: 0;
    transform: scale(0.8);
}

.breadcrumb-nav a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.breadcrumb-nav a:hover {
    color: #2d5a27;
    background: rgba(45, 90, 39, 0.08);
    border-color: rgba(45, 90, 39, 0.15);
    transform: translateY(-1px);
}

.breadcrumb-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2d5a27, #8bab2f);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.breadcrumb-nav a:hover::after {
    width: 80%;
}

.breadcrumb-nav a i {
    margin-right: 0.375rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.breadcrumb-nav .text-primary {
    color: #2d5a27;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.1) 0%, rgba(139, 164, 47, 0.08) 100%);
    border: 1px solid rgba(45, 90, 39, 0.2);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.breadcrumb-nav .text-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.breadcrumb-nav .text-primary:hover::before {
    left: 100%;
}

.breadcrumb-nav .fas.fa-chevron-right {
    color: #9ca3af;
    font-size: 0.7rem;
    margin: 0 0.25rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

@keyframes breadcrumbSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section adjustments for breadcrumb */
.gallery-hero {
    margin-top: 0;
    padding-top: 80px;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .gallery-hero {
        padding-top: 100px;
    }
    
    .breadcrumb-nav {
        z-index: 40;
        top: 80px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
        backdrop-filter: blur(16px);
        padding: 0.625rem 0;
    }
    
    .breadcrumb-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .breadcrumb-nav .text-primary {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        padding-top: 120px;
        min-height: 100dvh;
    }
    
    .breadcrumb-nav {
        top: 80px;
        padding: 0.65rem 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
        backdrop-filter: blur(18px);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    }
    
    .breadcrumb-nav a,
    .breadcrumb-nav .text-primary {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Animation */
.stats-number {
    transition: all 0.6s ease;
}

.stats-number.counting {
    transform: scale(1.1);
    color: var(--gallery-gold-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-hero {
        min-height: 90dvh;
        padding: 100px 0 50px 0;
        margin: 0;
    }
    
    .gallery-hero h1 {
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 2rem;
    }
    
    .gallery-hero p {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 85dvh;
        padding: 140px 0 80px 0;
        margin: 0;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-hero p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-modal {
        padding: 1rem;
    }
    
    .video-container {
        width: 95vw;
    }
}

@media (max-width: 640px) {
    .gallery-hero {
        min-height: 80dvh;
        padding: 120px 0 60px 0;
        margin: 0;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .gallery-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .gallery-actions {
        justify-content: center;
    }
    
    .gallery-btn {
        width: 36px;
        height: 36px;
    }
}

/* Performance Optimizations */
.gallery-card,
.video-card,
.gallery-hero {
    will-change: transform;
}

.gallery-card img,
.video-card img {
    will-change: transform;
}

/* Loading States */
.gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll to Top Button - Gallery Theme */
#scroll-to-top {
    background: var(--gallery-gold) !important;
    color: black !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3) !important;
    z-index: 9998 !important;
    position: fixed !important;
}

#scroll-to-top:hover {
    background: var(--gallery-gold-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gallery-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gallery-gold-dark);
}

/* Selection Styling */
::selection {
    background: var(--gallery-gold);
    color: white;
}

::-moz-selection {
    background: var(--gallery-gold);
    color: white;
}

/* Focus Styles for Accessibility */
.filter-btn:focus,
.gallery-btn:focus,
.lightbox-action-btn:focus,
.video-play-btn:focus {
    outline: 3px solid var(--gallery-gold);
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .gallery-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    }
    
    .filter-btn {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .gallery-card,
    .video-card,
    .filter-btn,
    .gallery-btn,
    .animate-on-scroll {
        transition: none;
        animation: none;
    }
    
    .gallery-card:hover {
        transform: none;
    }
    
    .gallery-card:hover img {
        transform: none;
    }
}
