/**
 * EkranTamiri.tr — tüm sayfalarda mobil / küçük ekran iyileştirmeleri
 * header.php ile yüklenir (site içi stillerden sonra).
 */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

/* Formlar taşmasın */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form input[type="number"],
form input[type="search"],
form textarea,
form select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablolar */
table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Üst bant — çok dar ekranda */
@media (max-width: 480px) {
    .ust-ticker-bar .ticker-wrap span {
        font-size: 11px;
        margin-right: 28px;
    }
}

/* Çentikli telefonlar — header */
@supports (padding: env(safe-area-inset-top)) {
    .pro-site-header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .h-nav.open {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Blog (sınıflar blog.php içinde) */
.page-header {
    text-align: center;
    padding: clamp(48px, 12vw, 88px) 16px;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    color: #fff;
}
.page-header h1 {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    margin: 0 0 8px;
}
.page-header p {
    margin: 0;
    opacity: 0.9;
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
}
.blog-content {
    padding: 32px 0 48px;
}
.blog-content .container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.blog-controls input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 16px;
}
.blog-controls .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-controls .filter-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}
.blog-post {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.blog-post img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.blog-post h3 {
    font-size: 1.1rem;
    padding: 14px 16px 0;
    margin: 0;
}
.blog-post p {
    padding: 8px 16px;
    margin: 0;
    font-size: 0.92rem;
    color: #64748b;
}
.blog-post .read-more {
    display: inline-block;
    margin: 0 16px 16px;
    font-weight: 700;
    color: #ea580c;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}
.pagination .page-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
}
.cta {
    text-align: center;
    padding: 48px 16px;
    background: #f8fafc;
}
.cta .container {
    max-width: 560px;
    margin: 0 auto;
}
.cta h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
}
.cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    margin-top: 16px;
    border-radius: 12px;
    background: #fd7901;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

/* Bölge şablonu — ek sıkı padding */
@media (max-width: 480px) {
    .region-premium-page .rp-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .rp-hero {
        padding-top: 72px;
    }
}

/* Marka sayfası — tek main.et-brand-page */
.et-brand-page {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .et-brand-hero {
        padding-top: 96px !important;
        padding-bottom: 64px !important;
    }
    .et-brand-hero-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .et-brand-cta-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .et-brand-cta-row a {
        width: 100% !important;
        box-sizing: border-box;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }
    .et-brand-visual-inner {
        height: min(52vh, 340px) !important;
    }
}

@media (max-width: 640px) {
    .et-brand-page section[style*="padding: 110px 0"] {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .et-brand-page section[style*="padding: 100px 0"] {
        padding-top: 52px !important;
        padding-bottom: 52px !important;
    }
    .et-brand-page section[style*="padding: 90px 0"] {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    /* İstatistik şeridi — mobilde dikey böl */
    .et-brand-stats-row > div {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .et-brand-stats-row > div:last-child {
        border-bottom: none !important;
    }
}

/* Footer CTA turuncu kutu */
@media (max-width: 480px) {
    .footer-cta-orange {
        padding: 40px 14px;
        border-radius: 0;
    }
    .cta-text-content h2 {
        font-size: 1.35rem !important;
    }
    .cta-big-btn {
        font-size: 15px !important;
        padding: 16px 18px !important;
    }
}

/* Blog makale sayfaları (pages/blog/*.php) */
.et-blog-article {
    --et-blog-bg: #0a0e18;
    --et-blog-card: #141c2e;
    --et-blog-border: rgba(99, 102, 241, 0.14);
    --et-blog-muted: #94a3b8;
    background: var(--et-blog-bg);
    color: #f1f5f9;
    font-family: 'Inter', system-ui, sans-serif;
    padding: 48px 0 72px;
}
.et-blog-article-inner {
    width: min(760px, 92%);
    margin: 0 auto;
}
.et-blog-bc {
    font-size: 0.8rem;
    color: var(--et-blog-muted);
    margin-bottom: 22px;
}
.et-blog-bc a {
    color: #a5b4fc;
    text-decoration: none;
}
.et-blog-bc a:hover {
    text-decoration: underline;
}
.et-blog-bc span[aria-hidden] {
    margin: 0 8px;
    opacity: 0.45;
}
.et-blog-article-head .et-blog-meta {
    font-size: 0.8rem;
    color: #818cf8;
    font-weight: 700;
    margin: 0 0 10px;
}
.et-blog-article-head h1 {
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    font-weight: 900;
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.et-blog-dek {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}
.et-blog-prose {
    margin-top: 28px;
}
.et-blog-prose h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 28px 0 12px;
    color: #e0e7ff;
}
.et-blog-prose p,
.et-blog-prose li {
    font-size: 0.98rem;
    line-height: 1.72;
    color: #cbd5e1;
}
.et-blog-prose p {
    margin: 0 0 14px;
}
.et-blog-prose ul,
.et-blog-prose ol {
    margin: 0 0 14px;
    padding-left: 1.25rem;
}
.et-blog-prose a {
    color: #67e8f9;
    font-weight: 700;
    text-decoration: none;
}
.et-blog-prose a:hover {
    text-decoration: underline;
}
.et-blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
    background: var(--et-blog-card);
    border: 1px solid var(--et-blog-border);
    border-radius: 12px;
    overflow: hidden;
}
.et-blog-table th,
.et-blog-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--et-blog-border);
}
.et-blog-table th {
    background: rgba(99, 102, 241, 0.12);
    color: #e0e7ff;
    font-weight: 800;
}
.et-blog-table tr:last-child td {
    border-bottom: none;
}
.et-blog-article-foot {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--et-blog-border);
    font-size: 0.92rem;
}
.et-blog-article-foot p {
    margin: 0 0 10px;
    color: var(--et-blog-muted);
}
.et-blog-article-foot a {
    color: #67e8f9 !important;
    font-weight: 700;
    text-decoration: none;
}
.et-blog-article-foot a:hover {
    text-decoration: underline;
}
.et-blog-cta {
    color: #a5b4fc !important;
}
