/* style.css (Light/Airy Theme) */

/* Custom Scrollbar for a premium feel */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC; 
}
 
::-webkit-scrollbar-thumb {
    background: #CBD5E1; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8; 
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Accounts for the sticky header */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero Slider */
.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}

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

/* Slider Badge Animasyonu */
@keyframes badgeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.85);
    }
    60% {
        transform: translateY(-4px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stitch referansı: tüm badge'e kırmızı glow nabzı */
@keyframes pulseRedGlow {
    0%   { box-shadow: 0 0 0 0   rgba(225, 29, 72, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0   rgba(225, 29, 72, 0); }
}

.badge-pulse-glow {
    animation: pulseRedGlow 2s ease-out infinite;
}

/* Her slide aktif olduğunda badge slide-in animasyonu yeniden başlar */
.hero-slide .slide-badge {
    animation-play-state: paused;
    opacity: 0;
}
.hero-slide.active .slide-badge {
    animation:
        badgeSlideIn   0.6s  cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        pulseRedGlow   2s    ease-out                            2s infinite;
    animation-play-state: running;
}

/* Intersection Observer Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Mobile Menu Interaction Styles */
#mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

/* Form Styles */
input[type="text"],
input[type="tel"],
input[type="email"],
select {
    -webkit-appearance: none;
    appearance: none;
}

/* Custom Dropdown Arrow for Select */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E11D48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Checkbox Style customization for Tailwind */
input[type="checkbox"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    display: grid;
    place-content: center;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
    background-color: #E11D48;
    border-color: #E11D48;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Focus States */
:focus-visible {
    outline: 2px solid #E11D48;
    outline-offset: 2px;
}

/* WhatsApp Dynamic Button Styling */
.btn-whatsapp-dynamic {
    background-color: transparent !important;
    color: #E11D48 !important; /* brand accent red */
    border: 1px solid #E11D48 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block;
}

.btn-whatsapp-dynamic i {
    color: #E11D48 !important;
    transition: color 0.3s ease !important;
}

.btn-whatsapp-dynamic:hover {
    background-color: rgba(225, 29, 72, 0.1) !important; /* matches Vade Hatırlat background color */
    color: #E11D48 !important;
    border-color: #E11D48 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(225, 29, 72, 0.15);
}

.btn-whatsapp-dynamic:hover i {
    color: #E11D48 !important;
}

/* Premium CTA Button Style (Option A) */
.btn-premium-cta {
    background: linear-gradient(135deg, #E11D48 0%, #F43F5E 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 10px 20px -10px rgba(225, 29, 72, 0.4) !important;
}

.btn-premium-cta i {
    color: white !important;
    transition: transform 0.3s ease !important;
}

.btn-premium-cta:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 25px -10px rgba(225, 29, 72, 0.6) !important;
    background: linear-gradient(135deg, #F43F5E 0%, #FF7F7F 100%) !important;
    color: white !important;
}

.btn-premium-cta:hover i {
    transform: scale(1.2) rotate(-10deg);
}
