/* Zalusa Global Design System */

:root {
    --primary-blue: #0000BE;
    --stroke-color: #E1E8F1;
    --icon-color: #5147EF;
    --icon-bg: #EDF2FF;
    --text-slate: #1e293b;
    --text-gray: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Rich content typography (SEO / legal / country-city pages) */
.zalusa-rich-content {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.68;
    text-align: left;
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .zalusa-rich-content {
        font-size: 0.97rem;
        line-height: 1.74;
    }
}

.zalusa-rich-content > :first-child {
    margin-top: 0 !important;
}

.zalusa-rich-content > :last-child {
    margin-bottom: 0 !important;
}

.zalusa-rich-content :where(h1, h2, h3, h4, h5, h6) {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 1.02em 0 0.34em;
}

.zalusa-rich-content h1 {
    font-size: clamp(1.6rem, 1.25rem + 1.25vw, 2.1rem);
}

.zalusa-rich-content h2 {
    font-size: 1.36rem !important;
    font-weight: 800 !important;
    color: #0b1329 !important;
    margin-top: 0.95em !important;
    margin-bottom: 0.3em !important;
}

.zalusa-rich-content h3 {
    font-size: 1.14rem !important;
    font-weight: 700 !important;
    color: #1a2741 !important;
    margin-top: 0.78em !important;
    margin-bottom: 0.22em !important;
}

.zalusa-rich-content h4 {
    font-size: 1.03rem !important;
    font-weight: 700 !important;
    color: #253553 !important;
}

@media (min-width: 768px) {
    .zalusa-rich-content h2 {
        font-size: 1.58rem !important;
    }
    .zalusa-rich-content h3 {
        font-size: 1.25rem !important;
    }
    .zalusa-rich-content h4 {
        font-size: 1.08rem !important;
    }
}

.zalusa-rich-content h5,
.zalusa-rich-content h6 {
    font-size: 1rem;
}

.zalusa-rich-content :where(p, ul, ol, table, blockquote, pre, figure) {
    margin: 0.45rem 0;
}

.zalusa-rich-content p {
    color: #475569;
}

.zalusa-rich-content ul,
.zalusa-rich-content ol {
    padding-left: 1.2rem;
    color: #243650;
    list-style-position: outside;
}

.zalusa-rich-content ul {
    list-style: disc;
}

.zalusa-rich-content ol {
    list-style: decimal;
}

.zalusa-rich-content li {
    margin: 0.16rem 0;
    padding-left: 0.12rem;
    color: #1f2f4a;
}

.zalusa-rich-content li::marker {
    color: #243650;
    font-weight: 700;
}

.zalusa-rich-content li > ul,
.zalusa-rich-content li > ol {
    margin-top: 0.22rem;
    margin-bottom: 0.22rem;
}

.zalusa-rich-content a {
    color: #0000BE;
    font-weight: 600;
    text-decoration: none;
}

.zalusa-rich-content a:hover {
    color: #00009c;
}

.zalusa-rich-content strong {
    color: #1e293b;
}

.zalusa-rich-content :where(img, video, iframe) {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.zalusa-rich-content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border: 1px solid #b9c7da;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #ffffff;
    margin: 0.66rem 0 0.82rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07);
}

.zalusa-rich-content thead {
    background: #dbe5f1;
}

.zalusa-rich-content th,
.zalusa-rich-content td {
    padding: 0.42rem 0.5rem;
    border-bottom: 1px solid #d8e1ec;
    text-align: left;
    vertical-align: top;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    border-right: 1px solid #ced9e6;
}

.zalusa-rich-content th {
    color: #0f172a;
    font-weight: 700;
    border-bottom: 1px solid #b9c7da;
}

.zalusa-rich-content td {
    color: #1f2f4a;
}

.zalusa-rich-content tr > *:last-child {
    border-right: 0;
}

.zalusa-rich-content tbody tr:nth-child(even) {
    background: #f8fafc;
}

.zalusa-rich-content tbody tr:last-child td {
    border-bottom: 0;
}

.zalusa-rich-content blockquote {
    border-left: 3px solid #cbd5e1;
    padding-left: 0.9rem;
    color: #475569;
    font-style: italic;
}

@media (min-width: 768px) {
    .zalusa-rich-content th,
    .zalusa-rich-content td {
        padding: 0.58rem 0.68rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .zalusa-rich-content table {
        display: inline-table;
        width: auto !important;
        min-width: 26rem;
        max-width: 100%;
        table-layout: auto;
    }
    .zalusa-rich-content th,
    .zalusa-rich-content td {
        padding: 0.48rem 0.58rem;
        font-size: 0.84rem;
        line-height: 1.35;
    }
}

/* Unified Stroke & Shadow System */
.zalusa-card {
    border: 1px solid var(--stroke-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    background: white;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.zalusa-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Icon Styles */
.zalusa-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--icon-bg);
    color: var(--icon-color);
    border-radius: 9999px;
    padding: 0.75rem;
}

.zalusa-icon-container svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Button Refinement */
.btn-zalusa-primary {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s;
    font-family: 'Inter', sans-serif !important;
}

.btn-zalusa-primary:hover {
    background-color: #00009c;
}

/* Unified Frontend Button System */
:where(a, button).btn-ui,
:where(a, button)[class*="bg-[#0000BE]"][class*="font-bold"],
:where(a, button)[class*="bg-white"][class*="border"][class*="font-bold"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 0.75rem;
    min-height: 2.875rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

:where(a, button).btn-ui-primary,
:where(a, button)[class*="bg-[#0000BE]"][class*="font-bold"] {
    background-color: #0000BE;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 10px 18px -10px rgba(0, 0, 190, 0.45);
}

:where(a, button).btn-ui-primary:hover,
:where(a, button)[class*="bg-[#0000BE]"][class*="font-bold"]:hover {
    background-color: #00009c;
    box-shadow: 0 14px 22px -12px rgba(0, 0, 190, 0.5);
}

:where(a, button).btn-ui-secondary,
:where(a, button)[class*="bg-white"][class*="border"][class*="font-bold"] {
    background-color: #fff;
    color: #334155;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

:where(a, button).btn-ui-secondary:hover,
:where(a, button)[class*="bg-white"][class*="border"][class*="font-bold"]:hover {
    background-color: #f8fafc;
    border-color: #dbe3ef;
}

:where(a, button).btn-ui:focus-visible,
:where(a, button)[class*="bg-[#0000BE]"][class*="font-bold"]:focus-visible,
:where(a, button)[class*="bg-white"][class*="border"][class*="font-bold"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 190, 0.18);
}

@media (min-width: 768px) {
    :where(a, button).btn-ui,
    :where(a, button)[class*="bg-[#0000BE]"][class*="font-bold"],
    :where(a, button)[class*="bg-white"][class*="border"][class*="font-bold"] {
        min-height: 3rem;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Subtext & Labels */
.zalusa-subtext {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.zalusa-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--icon-bg);
    color: var(--icon-color);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Animations */
@keyframes zalusa-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-zalusa-float {
    animation: zalusa-float 3s ease-in-out infinite;
}

@keyframes zalusa-pulse-soft {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
}

.animate-zalusa-pulse {
    animation: zalusa-pulse-soft 2s ease-in-out infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 3s infinite;
}

@keyframes headline-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.headline-shimmer {
    background-size: 200% 100%;
    animation: headline-shimmer 6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .headline-shimmer { animation: none; }
}

/* Desktop spacing normalization (site-wide) */
@media (min-width: 1024px) {
    section[class*="md:py-24"] {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }

    section[class*="md:py-20"] {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    section[class*="md:pt-24"] {
        padding-top: 4.5rem !important;
    }

    section[class*="md:pb-24"] {
        padding-bottom: 4.5rem !important;
    }

    .md\:mb-20 {
        margin-bottom: 3.5rem !important;
    }

    .md\:gap-16,
    .lg\:gap-16 {
        gap: 3rem !important;
    }

    .md\:gap-20,
    .lg\:gap-20 {
        gap: 4rem !important;
    }
}

/* Mobil header: accordion bölümler (details/summary) */
.zalusa-mobile-nav {
    -webkit-tap-highlight-color: transparent;
}
.zalusa-mobile-nav a,
.zalusa-mobile-nav button,
.zalusa-mobile-nav summary {
    touch-action: manipulation;
}
details.zalusa-nav-acc > summary {
    list-style: none;
}
details.zalusa-nav-acc > summary::-webkit-details-marker {
    display: none;
}
details.zalusa-nav-acc[open] > summary .zalusa-nav-acc-chevron {
    transform: rotate(180deg);
}
details.zalusa-nav-acc[open] > summary.zalusa-mobile-nav-summary {
    background-color: rgb(248 250 252 / 0.92);
}
