/**
 * grapixa.com - Ana Stil Dosyası
 * Dosya Yolu: /assets/css/style.css
 * Tüm renkler ve fontlar includes/dynamic-style.php içindeki :root değişkenlerinden beslenir.
 */

/* -----------------------------------------------------------
   1. GENEL SIFIRLAMA, TİPOGRAFİ VE SİMETRİ KURALLARI
----------------------------------------------------------- */
body {
    background-color: var(--body-bg);
    color: #212529;
    font-family: var(--main-font);
    overflow-x: hidden;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease, all 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

/* Metin Blokları İçin İki Yana Yaslı (Justify) Kuralı */
.text-justify,
.page-content p,
.product-description p,
.footer-about-text {
    text-align: justify;
    line-height: 1.7;
}

/* Tüm Grid ve Kart Satırlarında Simetrik Ortalama */
.symmetric-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Ana Tema Butonu (Sarı / Koyu Mavi Dinamik) */
.btn-theme-primary {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: 2px solid var(--btn-bg);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-theme-primary:hover,
.btn-theme-primary:focus {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-theme-dark {
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-theme-dark:hover {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}

/* Kategori ve Örnek Tasarımlar Filtre Butonları Hover Düzeltmesi */
.btn-outline-dark.bg-white {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: all 0.2s ease;
}

.btn-outline-dark.bg-white:hover,
.btn-outline-dark.bg-white:focus,
.btn-outline-dark.bg-white:active {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* -----------------------------------------------------------
   2. ÜST DUYURU BARI VE HEADER / NAVİGASYON
----------------------------------------------------------- */
.top-announcement-bar {
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    font-size: 0.92rem;
    letter-spacing: 0.4px;
}
.top-announcement-bar strong,
.top-announcement-bar b {
    font-weight: 900;
    font-size: 1.05em;
    letter-spacing: 0.6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.top-announcement-bar mark {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    margin: 0 3px;
    display: inline-block;
    line-height: 1.2;
}

.site-header {
    background-color: var(--menu-bg);
}

.site-logo {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* Menü Listesi: Tek Satır (nowrap) ve Tam Ortalanmış Yapı */
.site-header .main-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .main-nav-list .nav-item {
    position: relative; /* Açılır menünün butonun tam altına hizalanması için şart */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Her Link Kendi Butonu İçinde Yatay ve Dikey Tam Ortalanır, Tek Satır Kalır */
.site-header .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--menu-text);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.8rem !important;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus,
.site-header .navbar-nav .nav-link.active,
.site-header .nav-item.dropdown:hover > .nav-link {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Açılır menü okunun (caret) üzerine gelindiğinde yumuşakça dönmesi */
.site-header .dropdown-toggle::after {
    margin-left: 0.45em;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

/* Masaüstü: Nokta Ayraçlar ve Modern Aşağı Kayarak Açılan Dropdown */
@media (min-width: 992px) {
    .site-header .main-nav-list {
        flex-wrap: nowrap;
    }

    /* Linklerin Arasında Yatay ve Dikey Ortalanmış Noktalar */
    .site-header .main-nav-list > .nav-item:not(:last-child)::after {
        content: "";
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: var(--secondary-color);
        opacity: 0.75;
        margin: 0 0.35rem;
        flex-shrink: 0;
        align-self: center;
    }

    /* Hover sırasında ok ikonunu döndür */
    .site-header .nav-item.dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* Modern Açılır Menü Kutusu (Butonun Tam Altında ve Ortalanmış) */
    .site-header .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%; /* Butonun üstünü kapatmaz, tam altından başlar */
        left: 50%;
        transform: translateX(-50%) translateY(14px);
        min-width: 240px;
        padding: 0.6rem;
        margin-top: 10px !important;
        background-color: #ffffff;
        border: 1px solid rgba(13, 27, 42, 0.08);
        border-top: 3px solid var(--secondary-color);
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(13, 27, 42, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.22s;
        z-index: 1055;
    }

    /* Görünmez Hover Köprüsü: Fareyi butondan menüye indirirken kapanmasını engeller */
    .site-header .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
        background: transparent;
    }

    /* Üstte Küçük Dekoratif Üçgen İşaretçi */
    .site-header .dropdown-menu::after {
        content: "";
        position: absolute;
        top: -9px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 8px 8px 8px;
        border-style: solid;
        border-color: transparent transparent var(--secondary-color) transparent;
    }

    /* Fare Üzerine Geldiğinde Aşağı Doğru Yumuşakça Açılma */
    .site-header .nav-item.dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

/* Açılır Menü İçindeki Linklerin Modern Stili */
.site-header .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-header .dropdown-menu .dropdown-item:hover,
.site-header .dropdown-menu .dropdown-item:focus {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    transform: translateX(4px);
}

/* Mobil Hamburger Menü Görünümü */
@media (max-width: 991.98px) {
    .site-header .main-nav-list .nav-item {
        flex-direction: column;
        width: 100%;
    }
    .site-header .navbar-nav .nav-link {
        width: 100%;
        padding: 0.65rem 1rem !important;
    }
    .site-header .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
    }
    .site-header .dropdown-menu .dropdown-item {
        color: #ffffff;
        justify-content: center;
    }
    .site-header .dropdown-menu .dropdown-item.text-muted {
        color: rgba(255, 255, 255, 0.75) !important;
    }
}

/* -----------------------------------------------------------
   3. ANASAYFA BÖLÜM 1: GENİŞ SLIDER (TAM GÖRSEL & MODERN GEÇİŞ)
   (Metin Yok, Link/Buton Yok, Sağ/Sol Ok Yok, Sadece Alt Noktalar)
----------------------------------------------------------- */
.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 480px;
    background-color: var(--primary-color);
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-image-col {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    transform: scale(1.06);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide-item.active .hero-image-col {
    transform: scale(1);
}

/* Slider Sadece Alt Nokta (Dots/Pagination) Kontrolleri */
.hero-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.hero-slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider-dots button.active {
    width: 32px;
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .hero-slider-wrapper {
        height: 270px;
    }
}

/* -----------------------------------------------------------
   4. ANASAYFA BÖLÜM 2 & 3: KATEGORİ VE ÖNE ÇIKAN ÜRÜN KARTLARI
   (Hover'da Kutu Dışına Taşmadan scale(1.06) Büyüme Kuralı)
----------------------------------------------------------- */
.home-category-section .card,
.product-card,
.category-box-card,
.sample-box-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.product-card:hover,
.category-box-card:hover,
.sample-box-card:hover {
    box-shadow: 0 12px 28px rgba(13, 27, 42, 0.12);
}

.card-img-zoom-wrapper {
    overflow: hidden;
    position: relative;
    background-color: #f1f3f5;
    aspect-ratio: 4 / 3;
}

.card-img-zoom-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-zoom-wrapper img,
.category-box-card:hover .card-img-zoom-wrapper img,
.sample-box-card:hover .card-img-zoom-wrapper img {
    transform: scale(1.06);
}

/* -----------------------------------------------------------
   5. ANASAYFA BÖLÜM 4: "ÖRNEK TASARIMLAR" ÖZEL FONTLU BAŞLIK
----------------------------------------------------------- */
.home-samples-custom-heading {
    font-family: var(--samples-custom-font);
    font-size: var(--samples-font-size);
    color: var(--samples-text-color);
    line-height: 1.3;
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 767.98px) {
    .home-samples-custom-heading {
        font-size: calc(var(--samples-font-size) * 0.72);
    }
}

/* -----------------------------------------------------------
   6. ANASAYFA BÖLÜM 5 & REFERANSLAR: SİYAH KAPLAMA VE MARQUEE
   (Normalde Siyah/Monokrom, Hover'da Orijinal Renk)
----------------------------------------------------------- */
.reference-marquee-container {
    overflow: hidden;
    position: relative;
    background: transparent;
    padding: 1.5rem 0;
    border: none;
}

.reference-marquee-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: grapixaMarquee 28s linear infinite;
}

.reference-marquee-container:hover .reference-marquee-track {
    animation-play-state: paused;
}

@keyframes grapixaMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.reference-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    padding: 0.5rem 1rem;
    height: 90px;
    transition: transform 0.3s ease;
}

.reference-logo-box img {
    max-height: 75px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.reference-logo-box:hover {
    border: none;
    box-shadow: none;
}

.reference-logo-box:hover img {
    transform: scale(1.08);
}

/* -----------------------------------------------------------
   7. FOOTER VE ÜST YATAY MENÜ TEKRARI
----------------------------------------------------------- */
.footer-top-nav {
    background-color: #ffffff;
}

.footer-top-nav .nav-link {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.footer-top-nav .nav-link:hover {
    color: var(--link-hover);
}

.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

.footer-logo {
    max-height: 48px;
}

.footer-heading {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.footer-social-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* -----------------------------------------------------------
   8. SABİT (FLOATING) WHATSAPP BUTONU
----------------------------------------------------------- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp-btn:hover {
    background-color: #1ebe5d;
    transform: translateY(-3px) scale(1.03);
}

@media (max-width: 575.98px) {
    .floating-whatsapp-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 16px;
    }
    .floating-whatsapp-btn .whatsapp-btn-text {
        font-size: 0.85rem;
    }
}

/* -----------------------------------------------------------
   9. MİNİMALİST SİYAH-BEYAZ (%75 TRANSPARAN) LIGHTBOX KONTROLLERİ
----------------------------------------------------------- */
.lightbox-minimal-ctrl {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    opacity: 0.75;
    padding: 8px;
    line-height: 1;
    cursor: pointer;
    /* Beyaz zeminli kartvizit/tasarımların üstüne denk geldiğinde de net görünmesi için ince siyah kontur gölgesi */
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.9));
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 25;
}

.lightbox-minimal-ctrl:hover,
.lightbox-minimal-ctrl:focus {
    opacity: 1;
    transform: scale(1.12);
}

.lightbox-minimal-counter {
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    opacity: 0.75;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 2px 9px;
    border-radius: 10px;
    border: none;
    pointer-events: none;
    z-index: 25;
}