/* ================================================
   GALLERY PAGE STYLES
   ================================================ */

.gallery {
    padding-bottom: 5rem;
    min-height: 60vh;
}

/* Hero Section */
.gallery__hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1a2e 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: var(--color-white);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.gallery__hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/img/pattern.png'); /* Eğer varsa şık durur */
    opacity: 0.05;
    pointer-events: none;
}

.gallery__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gallery__subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
    line-height: 1.6;
}

/* Filters */
.gallery__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery__filter-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
}

.gallery__filter-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.gallery__filter-btn.active {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
    box-shadow: 0 4px 15px rgba(196, 161, 99, 0.3);
}

/* Grid */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    transition: all 0.5s ease;
}

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 280px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.gallery__item-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 26, 0.9) 0%, rgba(15, 15, 26, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(10px);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.1);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery__overlay-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__overlay-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
}

.gallery__item:hover .gallery__overlay-icon {
    transform: scale(1);
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.gallery__overlay-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Video Tag */
.gallery__video-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(196, 161, 99, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gallery__video-tag svg {
    width: 14px;
    height: 14px;
    fill: white;
    margin-left: 2px;
}

/* Empty State */
.gallery__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    border: 2px dashed #dee2e6;
}

.gallery__empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.2;
}

.gallery__empty h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.gallery__empty p {
    color: var(--color-text-muted);
}

/* Lightbox Styles */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.gallery-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.gallery-lightbox__content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media-item {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-out;
}

.gallery-lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
    transition: transform 0.2s ease;
}

.gallery-lightbox__close:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--color-gold);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-lightbox__close { top: 1rem; right: 1rem; font-size: 2.5rem; }
    .gallery__hero { padding: 4rem 0 3rem; }
    .gallery__grid { grid-template-columns: 1fr; }
    .gallery__item { height: 240px; }
}
