/* Global.css - Reset, temel layout, ortak stiller */

:root {
    --color-bg: #FCF4EE;
    --color-primary: #688745;
    --color-primary-dark: #495E31;
    --color-primary-light: #AFC794;
    --color-secondary-dark: #4B3A2D;
    --color-secondary-light: #5B4634;
    --color-text-main: #333333;
    --color-text-secondary: #F7F2EB;
    --color-muted: #777777;
    --color-accent: #970001;
    --color-accent-dark: #7A0000;
    --radius-card: 24px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout helpers */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 48px 0;
}

@media (min-width: 992px) {
    .section {
        padding: 72px 0;
    }
}

/* Headings */
.section__title {
    font-size: clamp(26px, 3.2vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 10px;
    color: #3a2b1f;
}

.section__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-muted);
    margin: 0;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading--center {
    text-align: center;
}

/* Buttons */
.btn {
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn--primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    border: 1px solid #dddddd;
    color: #555555;
}

.btn--full {
    width: 100%;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
}

/* Global Ad Placements */
.sticky-ad-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 5px;
}

.interstitial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.interstitial-modal.is-active {
    display: flex;
}

.interstitial-content {
    background: #fff;
    position: relative;
    max-width: 350px;
    width: 100%;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.interstitial-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
}

body.has-sticky-ad {
    padding-bottom: 50px; /* Space for sticky footer */
}

.tm-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
    fill: currentColor;
    flex-shrink: 0;
}

.tm-icon--sm { width: 0.9em; height: 0.9em; }
.tm-icon--lg { width: 1.25em; height: 1.25em; }
.tm-icon--xl { width: 1.5em; height: 1.5em; }
