/* ===== PRATIK EVLER - DESIGN SYSTEM ===== */
:root {
    --color-primary: #4e0727;
    --color-primary-hover: #3a0520;
    --color-accent: #82c8fc;
    --color-accent-hover: #6ab0e8;
    --gradient-brand: linear-gradient(135deg, #4e0727 0%, #82c8fc 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

p, li, td, th, blockquote {
    text-align: justify;
    hyphens: auto;
}

/* ===== NAV SCROLL STATE ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 4px 30px rgba(78, 7, 39, 0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: linear-gradient(135deg, #4e0727 0%, #1a0310 50%, #0a2a4a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-link {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-link:hover {
    color: var(--color-accent);
}

/* ===== FLOATING SHAPES (mobile menu bg) ===== */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: floatShape 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
}

/* ===== ANIMATED HERO BACKGROUND ===== */
.animated-bg {
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== CTA BUTTON SHINE ===== */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

/* ===== FAQ ACCORDION ===== */
.faq-answer {
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer.active {
    max-height: 1000px;
    transition: max-height 0.6s ease-in-out;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.active {
    transform: rotate(180deg);
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

/* ===== SSS (Sık Sorulan Sorular) - Ortak tasarım (Index & About) ===== */
.sss-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sss-faq-list .sss-faq-details {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.sss-faq-list .sss-faq-details:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(78, 7, 39, 0.08);
}
.sss-faq-list .sss-faq-details[open] {
    border-color: #4e0727;
    box-shadow: 0 4px 20px -4px rgba(78, 7, 39, 0.12);
}
.sss-faq-list .sss-faq-details summary {
    list-style: none;
    cursor: pointer;
    padding: 1.125rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    color: #0f172a;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
}
.sss-faq-list .sss-faq-details summary::-webkit-details-marker,
.sss-faq-list .sss-faq-details summary::marker {
    display: none;
}
.sss-faq-list .sss-faq-details summary .sss-chevron {
    flex-shrink: 0;
    color: #4e0727;
    font-size: 1.125rem;
    transition: transform 0.25s ease;
}
.sss-faq-list .sss-faq-details[open] summary .sss-chevron {
    transform: rotate(180deg);
}
.sss-faq-list .sss-answer {
    padding: 1rem 1.25rem 1.25rem;
    color: #475569;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.65;
    border-top: 1px solid #f1f5f9;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 640px) {
    .back-to-top {
        width: 3.25rem;
        height: 3.25rem;
        bottom: 2rem;
        right: 2rem;
    }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 90;
    text-decoration: none;
}

@media (min-width: 640px) {
    .whatsapp-float {
        bottom: 2rem;
        left: 2rem;
    }
}

/* ===== SWIPER OVERRIDES ===== */
.swiper-pagination-bullet {
    background: var(--color-accent);
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
    width: 28px;
    border-radius: 6px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.08);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* ===== COUNTER (JS target) ===== */
.counter {
    color: var(--color-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-brand);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3a0520, #6ab0e8);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--color-primary);
    color: white;
}

::-moz-selection {
    background: var(--color-primary);
    color: white;
}

/* ===== FOCUS VISIBLE (accessibility) ===== */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== PRINT ===== */
@media print {
    .whatsapp-float,
    .back-to-top,
    .mobile-menu,
    nav {
        display: none !important;
    }
}

/* ===== DETAIL CONTENT TYPOGRAPHY ===== */
.detail-content {
    color: #334155;
    font-size: clamp(1rem, 2.2vw, 1.08rem);
    line-height: 1.9;
}

.detail-content p {
    margin: 0 0 1.15rem;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

.detail-content h2,
.detail-content h3,
.detail-content h4 {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.35;
    margin: 1.6rem 0 0.8rem;
}

.detail-content ul,
.detail-content ol {
    margin: 0.85rem 0 1.15rem 1.2rem;
    padding: 0;
}

.detail-content li {
    margin-bottom: 0.45rem;
}

.detail-content blockquote {
    margin: 1.25rem 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--color-primary);
    background: #f8fafc;
    border-radius: 0.5rem;
    color: #1e293b;
}

.detail-content a {
    color: var(--color-primary);
    font-weight: 600;
    text-underline-offset: 2px;
}

.detail-content strong {
    color: #0f172a;
}
