/*
Theme Name: Ayasofya Pilav
Theme URI: https://www.yedikedi.com/
Author: Yedikedi
Author URI: https://www.yedikedi.com/
Description: Geleneksel Ayasofya Pilavcısı WordPress Teması.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: ayasofya-pilav
*/

:root {
    --primary-color: #ffa634;
    --secondary-color: #333;
    --background-color: #fff;
    --text-color: #333;
    --heading-color: #000;
    --border-color: #ebebeb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    font-family: 'Lexend', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Ornament divider */
.ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color));
}

.ornament::after {
    background: linear-gradient(to left, transparent, var(--primary-color));
}

/* Hero pattern */
.hero-bg {
    background-color: var(--heading-color);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 166, 51, 0.25) 0%, transparent 70%),
        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='%23ffa634' fill-opacity='0.08'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Card hover */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(26, 39, 68, 0.15);
}

/* Fade-in on scroll */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav scrolled */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: var(--heading-color) !important;
}

/* Input focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 166, 51, 0.2);
}

/* Gold button */
.btn-gold {
    background: linear-gradient(135deg, #ffb347 0%, #ffa634 50%, #ff9500 100%);
    background-size: 200% 200%;
    transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.8rem;
    padding: 0.8rem 1.8rem;
    border: none;
    color: #fff;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    cursor: pointer;
}

.btn-gold:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 166, 51, 0.4);
}

/* WhatsApp green button (var olan gold butonun yeşil versiyonu) */
.btn-whatsapp {
    background: linear-gradient(135deg, #34d058 0%, #22c55e 50%, #16a34a 100%);
    background-size: 200% 200%;
    transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.8rem;
    padding: 0.8rem 1.8rem;
    border: none;
    color: #fff;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-whatsapp:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.35);
}


/* Scroll indicator */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(8px)
    }
}

.scroll-bounce {
    animation: bounce 1.8s infinite;
}

/* Steam animation */
@keyframes steam {
    0% {
        opacity: 0;
        transform: translateY(0) scaleX(1);
    }

    50% {
        opacity: 0.6;
        transform: translateY(-12px) scaleX(1.1);
    }

    100% {
        opacity: 0;
        transform: translateY(-24px) scaleX(0.8);
    }
}

.steam-1 {
    animation: steam 2.5s ease-out infinite;
}

.steam-2 {
    animation: steam 2.5s ease-out 0.8s infinite;
}

.steam-3 {
    animation: steam 2.5s ease-out 1.6s infinite;
}

/* Counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   GALERİ (FOTOĞRAF GALERİSİ) STYLES
   ============================================= */

/* Albüm kartı hover efekti */
.gallery-album-card {
    transition: all 0.3s ease;
}

/* Lightbox item overlay */
.gallery-lightbox-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-lightbox-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-lightbox-item:hover::after {
    opacity: 1;
}

/* Galeri sayfası için responsive düzenlemeler */
@media (max-width: 768px) {
    .gallery-lightbox-item img {
        height: 200px !important;
    }
}

/* Number input spinner gizleme */
.ayasofya-qty-input::-webkit-inner-spin-button,
.ayasofya-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ayasofya-qty-input {
    -moz-appearance: textfield;
}

/* Galeri boş durum mesajı */
.gallery-empty-state {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
