/* Gallery Styles for Hairzoom Coiffeur */
/* Modern, Aydınlık & Canlı Tasarım - 21. Yüzyıl Premium */

:root {
    --gold: #B39F84;
    --dark-gold: #B39F84;
    --black: #0A0A0A;
    --white: #FFFFFF;
    --light-bg: #FAFAFA;
    --cream: #FFF8E7;
    --warm-white: #FFFEF9;
    --gradient-gold: linear-gradient(135deg, #B39F84 0%, #B39F84 50%, #B39F84 100%);
    --gradient-light: linear-gradient(135deg, #FFF8E7 0%, #FFFFFF 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--warm-white);
    color: var(--black);
    overflow-x: hidden;
}

/* Gallery Container - Aydınlık & Spacious */
.gallery-container {
    padding: 140px 20px 80px;
    max-width: 1800px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--warm-white);
}

/* Subtle Background Pattern */
.gallery-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(179, 159, 132, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(179, 159, 132, 0.02) 0%, transparent 50%),
        var(--warm-white);
    z-index: 0;
    pointer-events: none;
}

.gallery-container > * {
    position: relative;
    z-index: 1;
}

/* Header Section - Elegant & Bright */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 30px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(179, 159, 132, 0.1);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-gold);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(179, 159, 132, 0.3);
}

.gallery-subtitle {
    color: var(--gray);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 30px;
    opacity: 0.8;
}

/* Category Filters - Modern & Vibrant */
.gallery-filters {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    padding: 25px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(179, 159, 132, 0.1);
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-btn {
    padding: 16px 32px;
    background: var(--light-bg);
    border: 2px solid rgba(179, 159, 132, 0.2);
    color: var(--black);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.filter-btn span {
    font-size: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--black);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    background: var(--cream);
}

.filter-btn:hover span {
    transform: scale(1.3) rotate(10deg);
}

.filter-btn.active {
    background: var(--gradient-gold);
    color: var(--black);
    border-color: var(--gold);
    font-weight: 700;
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.filter-btn.active span {
    transform: scale(1.2);
}

/* Gallery Grid - Mobil için varsayılan tek sütun */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin-bottom: 60px;
    animation: fadeIn 1s ease 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-item {
    position: relative;
    width: 100%;
    min-height: 500px;
    max-height: 900px;
    overflow: visible;
    border-radius: 16px;
    cursor: pointer;
    background: var(--white);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    border: 5px solid rgba(179, 159, 132, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-strong);
    border-color: var(--gold);
    border-width: 6px;
    z-index: 10;
    padding: 15px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    min-height: 470px;
    max-height: 870px;
    object-fit: contain;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    border-radius: 12px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    transform: translateY(20px);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Load More Button - Premium Design */
.load-more-container {
    text-align: center;
    margin-top: 60px;
    animation: fadeIn 1s ease 0.6s both;
}

.load-more-btn {
    padding: 20px 56px;
    background: var(--gradient-gold);
    color: var(--black);
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.load-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.load-more-btn:hover::before {
    width: 500px;
    height: 500px;
}

.load-more-btn:active {
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    border-top-color: var(--black);
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Lightbox Modal - Premium Design */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    cursor: pointer;
    animation: fadeIn 0.4s ease;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    background: var(--black);
    border: 2px solid rgba(179, 159, 132, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    font-weight: 300;
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--gradient-gold);
    color: var(--black);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(179, 159, 132, 0.4);
}

.lightbox-title {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 50px;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--gray);
    animation: fadeIn 1s ease;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.gallery-empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.gallery-empty-text {
    font-size: 20px;
    opacity: 0.6;
    font-weight: 300;
}

/* Tablet - 2 sütun */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gallery-container {
        padding: 160px 40px 100px;
    }
    
    .gallery-filters {
        justify-content: center;
        flex-wrap: nowrap;
        padding: 28px;
    }
    
    .filter-btn {
        padding: 18px 36px;
        font-size: 16px;
    }
    
    .gallery-item {
        min-height: 500px;
        max-height: 900px;
        padding: 15px;
    }
    
    .gallery-item img {
        min-height: 470px;
        max-height: 870px;
    }
}

/* Desktop - 4 sütun */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .gallery-container {
        padding: 180px 60px 120px;
    }
    
    .gallery-item {
        border-radius: 16px;
        min-height: 500px;
        max-height: 900px;
        padding: 15px;
    }
    
    .gallery-item img {
        min-height: 470px;
        max-height: 870px;
    }
}

/* Large Desktop - 4 sütun */
@media (min-width: 1600px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .gallery-item {
        min-height: 500px;
        max-height: 900px;
        padding: 15px;
    }
    
    .gallery-item img {
        min-height: 470px;
        max-height: 870px;
    }
}

/* Mobil - Tek sütun, BÜYÜK FOTOĞRAFLAR */
@media (max-width: 767px) {
    .gallery-filters {
        justify-content: flex-start;
        padding: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .gallery-filters::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-container {
        padding: 120px 15px 60px;
    }
    
    .gallery-grid {
        gap: 25px;
    }
    
    .filter-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .gallery-item {
        border-radius: 16px;
        min-height: 500px;
        max-height: 900px;
        padding: 15px;
    }
    
    .gallery-item img {
        min-height: 470px;
        max-height: 870px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .lightbox-title {
        bottom: 20px;
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Performance Optimizations */
.gallery-item img {
    will-change: transform;
}

.gallery-item {
    will-change: transform;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.gallery-item.loading {
    background: linear-gradient(
        90deg,
        rgba(179, 159, 132, 0.05) 0%,
        rgba(179, 159, 132, 0.1) 50%,
        rgba(179, 159, 132, 0.05) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
