/* Özel stiller - Tailwind: tailwind.min.css, yazı tipi: fonts.css */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.5s ease-out forwards; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 50%, rgba(234,88,12,0.25) 100%);
}

/* Floating buttons */
.fab-stack {
    position: fixed;
    z-index: 50;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fab {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s;
    color: white;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.fab-whatsapp { background: #22c55e; }
.fab-phone { background: #f97316; }

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 56rem;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255,255,255,0.9);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.2s;
    z-index: 10;
    border: none;
    cursor: pointer;
}

.slider-btn:hover {
    background: white;
}

/* Review slider buttons: inside on mobile, slightly outside from md */
.review-nav-prev { left: 0.25rem; }
.review-nav-next { right: 0.25rem; }

@media (min-width: 768px) {
    .review-nav-prev { left: -1rem; }
    .review-nav-next { right: -1rem; }
}

.gallery-card:focus-visible,
.fab:focus-visible,
.slider-btn:focus-visible {
    outline: 3px solid #f97316;
    outline-offset: 2px;
}

/* Navbar scrolled */
.navbar-scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 18rem;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 50;
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

/* Service card hover */
.service-card {
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #fed7aa;
}

.gallery-card {
    transition: all 0.3s;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Lazy loading */
img.lazy {
    background: #e5e7eb;
}

img.lazy.loaded {
    background: transparent;
}

/* Admin */
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #d1d5db;
    transition: all 0.2s;
}

.admin-sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar-link.active {
    background: #f97316;
    color: white;
}

.sortable-ghost { opacity: 0.5; }
.sortable-drag { box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

/* Review slider dots */
.review-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: #d1d5db;
    transition: all 0.3s;
    cursor: pointer;
}

.review-dot.active {
    background: #f97316;
    width: 1.5rem;
}

/* Gallery modal slider track */
.gallery-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-slider-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.gallery-slider-slide img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .gallery-slider-slide img {
        height: 28rem;
    }
}

/* Çerez / KVKK bildirimi (engellemeyen, altta) */
.cookie-banner {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem 1rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
    background: #111827;
    color: #e5e7eb;
    font-size: 0.8125rem;
    line-height: 1.5;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: #fdba74; text-decoration: underline; }
.cookie-banner a:hover { color: #fff; }

.cookie-banner-btn {
    align-self: flex-end;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background: #f97316;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.cookie-banner-btn:hover { background: #ea580c; }
.cookie-banner a:focus-visible,
.cookie-banner-btn:focus-visible {
    outline: 3px solid #fdba74;
    outline-offset: 2px;
}

/* Küçük ekranda yüzen çağrı/WhatsApp butonları bildirimin üstüne çıkar */
.fab-stack { transition: bottom 0.2s; }

@media (max-width: 767.98px) {
    .fab-stack {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px) + var(--cookie-h, 0px));
    }
}

/* Geniş ekranda bildirim sol altta küçük bir kart olur; sağdaki butonlarla çakışmaz */
@media (min-width: 768px) {
    .cookie-banner {
        left: 1rem;
        right: auto;
        bottom: 1rem;
        max-width: 30rem;
        border-radius: 1rem;
        padding-bottom: 0.875rem;
    }
}

/* SSS akordeonu */
.faq-item > summary { list-style: none; cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; }
.faq-item > summary:focus-visible {
    outline: 3px solid #f97316;
    outline-offset: 2px;
    border-radius: 0.75rem;
}
