/* ============================================
   MEALIS TURKEY - UNIFIED STYLESHEET
   WordPress Theme Ready
   ============================================ */

/* ============================================
   TÜRKÇE KARAKTER DÜZELTMESİ
   Montserrat latin-ext subset + font-feature
   ============================================ */
html, body, * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(170, 204, 129, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(170, 204, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(170, 204, 129, 0); }
}

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

@keyframes fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.animate-float { 
    animation: float 6s ease-in-out infinite; 
}

.animate-pulse-soft { 
    animation: pulse-soft 3s infinite; 
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.text-gradient {
    background: linear-gradient(135deg, #00548a 0%, #aacc81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(138, 170, 192, 0.3);
}

.glass-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: #ffffff;
    border-color: #00548a;
    box-shadow: 0 0 0 4px rgba(0, 84, 138, 0.1);
    outline: none;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* ============================================
   MEGA MENU STYLES
   ============================================ */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   TAB CONTENT
   ============================================ */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px); 
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.solution-content {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(2rem);
    pointer-events: none;
    transition: all 0.7s ease;
    z-index: 0;
}

.solution-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
}

/* ============================================
   VALUE CARD HOVER EFFECTS
   ============================================ */
.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: #f0fdf4;
}

/* ============================================
   PARTNER GRID ANIMATION
   ============================================ */
.partner-grid img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

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

/* ============================================
   LOCATION CARD EFFECTS
   ============================================ */
.location-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 84, 138, 0.15);
    border-color: #aacc81;
}

.flag-bg {
    transition: transform 0.6s ease;
}

.location-card:hover .flag-bg {
    transform: scale(1.15) rotate(-3deg);
    opacity: 0.15;
}

.map-overlay {
    mix-blend-mode: multiply;
    opacity: 0.1;
    transition: opacity 0.3s;
}

.location-card:hover .map-overlay {
    opacity: 0;
}

/* ============================================
   BACKGROUND PATTERNS
   ============================================ */
.bg-pattern-dot {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pattern {
    background-image: 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='%2300548a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   PARTNER CARD EFFECTS
   ============================================ */
.partner-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: #aacc81;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   HARDWARE ACCELERATION
   ============================================ */
.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   CSR CARD EFFECTS
   ============================================ */
.csr-card {
    transition: all 0.4s ease;
}

.csr-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 84, 138, 0.15);
}

/* ============================================
   SLIDER STYLES
   ============================================ */
.slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0 60px 0;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 24px;
}

.slider-card {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .slider-card { 
        flex: 0 0 calc(50% - 12px); 
    }
}

@media (min-width: 1024px) {
    .slider-card { 
        flex: 0 0 calc(33.333% - 16px); 
    }
}

.slider-card:hover {
    transform: translateY(-5px);
    border-color: #aacc81;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Haber listesi — Stratejik Öncelikler (slider-card) ile aynı gölge / hover */
.haber-slider-card {
    display: flex !important;
    flex-direction: column !important;
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.haber-slider-card:hover {
    transform: translateY(-5px);
    border-color: #aacc81;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    color: #00548a;
}

.slider-btn:hover {
    background: #00548a;
    color: white;
    border-color: #00548a;
}

/* ============================================
   PRODUCT SHOWCASE STYLES
   ============================================ */
.showcase-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.showcase-card:hover {
    transform: translateY(-8px);
}

.product-image-container {
    background: #ffffff;
}

.product-img-large {
    filter: none;
    transition: transform 0.5s ease;
}

.showcase-card:hover .product-img-large {
    transform: scale(1.1);
}

/* Urun kartlarinda baslik satir sayisi degisse de aciklama hizasi sabit kalsin */
#products-grid .product-item .mb-4 > h4 {
    min-height: 4rem;
    line-height: 1.25;
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.details-content.open {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

/* ============================================
   FILTER BUTTON STYLES
   ============================================ */
.filter-btn { 
    transition: all 0.2s ease; 
}

.filter-btn:hover { 
    background-color: #f8fafc; 
    color: #00548a; 
}

.filter-btn.active { 
    background-color: #00548a; 
    color: white; 
    border-color: #00548a; 
}

.filter-btn.active:hover { 
    background-color: #00426e; 
    color: white; 
}

/* ============================================
   ÜRÜNLERİMİZ - product-iten (liste formatı)
   ============================================ */
.pc-right {
    display: grid;
    gap: 1.5rem;
}

.product-iten {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    align-items: flex-start;
    transition: box-shadow 0.2s ease;
}

.product-iten:hover {
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.08);
}

.product-iten-left {
    flex: 0 0 140px;
}

.product-iten-left img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.product-iten-right {
    flex: 1;
    min-width: 0;
}

.product-iten-right h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #00548a;
    margin-bottom: 0.5rem;
}

.product-text {
    font-size: 14px;
    text-align: justify;
    color: #475569;
    line-height: 1.5;
}

.product-text span { display: block; margin-bottom: 0.25rem; }

.product-details-extra {
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
}

.product-iten.expanded .product-details-extra { display: block; }
.product-iten.expanded .text-deta { display: none !important; }
.product-iten.expanded .text-deta-hide { display: inline-block !important; }

.text-deta,
.text-deta-hide {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.text-deta { display: inline-block; }
.text-deta-hide { display: none !important; }

/* ============================================
   POLICY PAGE STYLES
   ============================================ */
.policy-text { 
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.policy-text h1 { 
    font-size: 1.875rem;
    font-weight: 800;
    color: #00548a;
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.025em;
}

.policy-text h2 { 
    font-size: 1.25rem;
    font-weight: 700;
    color: #002a45;
    margin-bottom: 1.25rem;
    margin-top: 3rem;
    border-left: 6px solid #aacc81;
    padding-left: 1.25rem;
    padding-top: 0.25rem;
    background: linear-gradient(to right, #f8fafc, transparent);
    border-radius: 0 0.5rem 0.5rem 0;
}

.policy-text h3 { 
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-text p { 
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 400;
    text-align: justify;
    letter-spacing: 0.025em;
}

.policy-text ul { 
    list-style: none;
    margin-bottom: 2rem;
    space-y: 0.75rem;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 400;
    padding-left: 0.5rem;
}

.policy-text li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.75;
}

.policy-text li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #aacc81;
    font-weight: 700;
    font-size: 1.25rem;
    top: -0.25rem;
}

.policy-text a { 
    color: #00548a;
    font-weight: 700;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-decoration-color: rgba(170, 204, 129, 0.3);
    text-underline-offset: 4px;
}

.policy-text a:hover {
    color: #aacc81;
    text-decoration-color: #aacc81;
}

.policy-text strong {
    font-weight: 700;
    color: #002a45;
}

.policy-tab.active {
    background-color: #00548a;
    color: white;
    border-color: #00548a;
}

.policy-tab.active svg { 
    color: #aacc81; 
}

.policy-content { 
    display: none; 
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); 
}

.policy-content.active { 
    display: block; 
}

/* ============================================
   BODY BASE STYLES
   ============================================ */
body { 
    color: #334155; 
}

/* ============================================
   MOBILE TYPOGRAPHY (≤767px)
   Scales Tailwind display utilities toward typical mobile readability.
   Scoped to main / section / page header — not nav, mobile drawer, or footer.
   Order: larger utilities first, then smaller, so elements carrying both
   text-5xl + text-4xl (e.g. text-4xl md:text-5xl) resolve to the smaller below md.
   ============================================ */
@media (max-width: 767px) {
    main .text-6xl,
    section .text-6xl,
    body > header .text-6xl {
        font-size: 2rem !important;
        line-height: 1.15 !important;
    }

    main .text-5xl,
    section .text-5xl,
    body > header .text-5xl {
        font-size: 1.875rem !important;
        line-height: 1.15 !important;
    }

    main .text-4xl,
    section .text-4xl,
    body > header .text-4xl {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    main .text-3xl,
    section .text-3xl,
    body > header .text-3xl {
        font-size: 1.375rem !important;
        line-height: 1.25 !important;
    }

    main .text-2xl,
    section .text-2xl,
    body > header .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    main .text-xl,
    section .text-xl,
    body > header .text-xl {
        font-size: 1.0625rem !important;
        line-height: 1.55 !important;
    }

    main .text-lg,
    section .text-lg,
    body > header .text-lg {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .policy-text h1 {
        font-size: 1.5rem;
        margin-bottom: 1.75rem;
        padding-bottom: 1rem;
    }

    .policy-text h2 {
        font-size: 1.125rem;
        margin-top: 2rem;
    }

    .policy-text h3 {
        font-size: 1.05rem;
    }

    .policy-text p,
    .policy-text ul {
        font-size: 0.9375rem;
    }
}

/* ============================================
   ÜRÜN KATEGORİ BADGE'LERİ — urun_kategori taxonomy slug'larına göre
   Base CSS: absolute top-6 right-6 px-3 py-1 text-xs font-bold rounded-full border shadow-sm z-10
   ============================================ */
.badge-kadin-sagligi {
    background-color: rgba(255, 228, 230, 0.92);
    color: #be185d;
    border-color: #fecdd3;
}

.badge-noroloji {
    background-color: rgba(245, 243, 255, 0.92);
    color: #7e22ce;
    border-color: #ddd6fe;
}

.badge-kardiyoloji {
    background-color: rgba(255, 241, 242, 0.92);
    color: #be123c;
    border-color: #fecda3;
}

.badge-uroloji {
    background-color: rgba(239, 246, 255, 0.92);
    color: #00548a;
    border-color: #bfdbfe;
}

.badge-dermatoloji {
    background-color: rgba(240, 253, 244, 0.92);
    color: #15803d;
    border-color: #bbf7d0;
}

/* ============================================
   İŞ BİRLİĞİ ORTAK BADGE'LERİ — is_birligi_tur bazlı
   ============================================ */
.partner-badge-green {
    background-color: #f0f9e8;
    color: #5c7a36;
}

.partner-badge-blue {
    background-color: #eff6ff;
    color: #00548a;
}

.partner-badge-neutral {
    background-color: #f8fafc;
    color: #475569;
}

/* ============================================
   CONTACT FORM (WPForms)
   .contactform  → form wrapper
   .contactformbutton → submit button
   ============================================ */

.contactform {
    width: 100%;
}

/* Field spacing */
.contactform .wpforms-form .wpforms-field {
    padding: 0 !important;
    margin-bottom: 1.125rem !important;
}

/* Label/sublabel gizle */
.contactform .wpforms-form .wpforms-field-label,
.contactform .wpforms-form .wpforms-field-sublabel {
    display: none !important;
}

/* Input & Textarea */
.contactform .wpforms-form input[type="text"],
.contactform .wpforms-form input[type="email"],
.contactform .wpforms-form input[type="tel"],
.contactform .wpforms-form textarea {
    width: 100% !important;
    padding: 0.9rem 1.125rem !important;
    border-radius: 0.625rem !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #1e293b !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    appearance: none !important;
}

.contactform .wpforms-form input[type="text"]::placeholder,
.contactform .wpforms-form input[type="email"]::placeholder,
.contactform .wpforms-form textarea::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.contactform .wpforms-form input[type="text"]:focus,
.contactform .wpforms-form input[type="email"]:focus,
.contactform .wpforms-form input[type="tel"]:focus,
.contactform .wpforms-form textarea:focus {
    background: #ffffff !important;
    border-color: #00548a !important;
    box-shadow: 0 0 0 3px rgba(0, 84, 138, 0.1) !important;
}

.contactform .wpforms-form textarea {
    min-height: 130px !important;
    resize: vertical !important;
}

/* İki kolonlu ad/soyad */
.contactform .wpforms-form .wpforms-field-row {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.contactform .wpforms-form .wpforms-field-row-block {
    flex: 1 !important;
    min-width: 0 !important;
}

.contactform .wpforms-form .wpforms-field-row-block + .wpforms-field-row-block {
    margin-left: 0.875rem !important;
}

/* Checkbox — KVKK */
.contactform .wpforms-form .wpforms-field-checkbox ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.contactform .wpforms-form .wpforms-field-checkbox li {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    font-size: 0.8125rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.contactform .wpforms-form .wpforms-field-checkbox input[type="checkbox"] {
    width: 1.125rem !important;
    height: 1.125rem !important;
    accent-color: #00548a !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.contactform .wpforms-form .wpforms-field-checkbox a {
    color: #00548a !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

/* Submit alanı */
.contactform .wpforms-form .wpforms-submit-container {
    margin-top: 1.5rem !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    background: none !important;
    border: none !important;
}

/* ── Gönder Butonu ── */
button.contactformbutton,
.contactformbutton {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #00548a 0%, #0070b8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.875rem 2.75rem !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 18px rgba(0, 84, 138, 0.35) !important;
    white-space: nowrap !important;
    text-transform: none !important;
}

button.contactformbutton:hover,
.contactformbutton:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(0, 84, 138, 0.4) !important;
}

button.contactformbutton:active,
.contactformbutton:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 84, 138, 0.25) !important;
}

button.contactformbutton:disabled,
.contactformbutton[disabled] {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Validation hataları */
.contactform .wpforms-form label.wpforms-error {
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.contactform .wpforms-form input.wpforms-error,
.contactform .wpforms-form textarea.wpforms-error {
    border-color: #fca5a5 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

/* Başarı mesajı */
.contactform .wpforms-confirmation-container-full,
.contactform .wpforms-confirmation-container {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 0.875rem !important;
    padding: 1.5rem 2rem !important;
    color: #15803d !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-top: 1rem !important;
}
