/* ===== MOBİL GLOBAL OPTİMİZASYON ===== */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a, button { -webkit-tap-highlight-color: rgba(74,124,107,0.2); }
.container { max-width: 1100px; margin: 0 auto; padding: 15px; }

@media (max-width: 768px) {
    .container { padding: 12px 10px; }
    .page-hero { padding: 28px 18px; border-radius: 18px; }
    .page-hero h1 { font-size: 1.45rem !important; line-height: 1.3; }
    .page-hero p { font-size: 0.9rem; }
    .content-box { padding: 20px 16px; border-radius: 18px; }
    .content-box h2 { font-size: 1.15rem !important; }
    .btn-wa, .whatsapp-btn, .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 16px 20px !important;
        font-size: 1rem !important;
        min-height: 48px;
    }
    /* Ana sayfa hub 2 sütun kalsın, diğer hub sayfaları tek sütun */
    .hub-grid:not(.home-hub-grid) { grid-template-columns: 1fr !important; }
    .home-hub-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .home-hub-grid .hub-card { padding: 14px 12px; min-height: 44px; }
    .home-hub-grid .hub-card h3 { font-size: 0.85rem; margin-bottom: 0; }
    .masoz-grid-page { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .semt-link-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .semt-link-grid a {
        font-size: 0.72rem !important;
        padding: 10px 8px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .breadcrumb-nav { font-size: 0.75rem; line-height: 1.5; }
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .masoz-grid-page { grid-template-columns: 1fr 1fr !important; }
    .home-hub-grid { grid-template-columns: 1fr 1fr !important; }
    .site-footer { padding: 25px 15px !important; border-radius: 16px 16px 0 0; }
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .site-footer .footer-links { flex-direction: column; gap: 8px !important; }
    .page-hero h1 { font-size: 1.25rem !important; }
}

@media (max-width: 380px) {
    .home-hub-grid .hub-card h3 { font-size: 0.78rem; }
}

/* Touch-friendly minimum targets */
.nav-menu a, .wa-float, .cookie-banner button, .hub-card { min-height: 44px; }

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    body { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
    .site-header { padding-left: max(15px, env(safe-area-inset-left)); padding-right: max(15px, env(safe-area-inset-right)); }
    .wa-float {
        bottom: max(18px, env(safe-area-inset-bottom));
        right: max(18px, env(safe-area-inset-right));
    }
    .container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
}

/* Shared page styles */
.page-hero {
    background: linear-gradient(135deg, #2d5a4b, #4a7c6b);
    color: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    margin-bottom: 25px;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 10px; color: white !important; }
.page-hero p { opacity: 0.92; font-size: 1rem; line-height: 1.6; }
.content-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    line-height: 1.9;
    color: #4a5a52;
    margin-bottom: 20px;
}
.content-box h2 { color: #2d5a4b; font-size: 1.3rem; margin: 20px 0 10px; }
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.hub-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    border-top: 4px solid #4a7c6b;
    text-decoration: none;
    color: #2d5a4b;
    transition: 0.2s;
    display: block;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.hub-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.hub-card p { font-size: 0.85rem; color: #6a7a72; }
.semt-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 15px 0;
}
.semt-link-grid a {
    background: #eaf4f0;
    color: #2d5a4b;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #c8ddd4;
}
.semt-link-grid a:hover { background: #2d5a4b; color: white; }

.site-footer {
    background: #2d5a4b;
    color: rgba(255,255,255,0.85);
    padding: 35px 20px;
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
}
.site-footer h3 { color: white; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #c8ddd4; text-decoration: none; font-size: 0.85rem; display: inline-block; padding: 2px 0; min-height: 28px; }
.site-footer a:hover { color: white; text-decoration: underline; }
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer .footer-copy { text-align: center; margin-top: 25px; font-size: 0.8rem; opacity: 0.7; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

.masoz-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.masoz-grid-page .card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
}
.masoz-grid-page .card img { width: 100%; height: 200px; object-fit: cover; }
.masoz-grid-page .card a { text-decoration: none; color: #2d5a4b; font-weight: 700; display: block; padding: 10px; }
.masoz-grid-page .card span { font-size: 0.75rem; color: #6b9a8a; display: block; padding: 0 10px 12px; }

.breadcrumb-nav { font-size: 0.82rem; color: #8a7a6a; margin-bottom: 15px; flex-wrap: wrap; }
.breadcrumb-nav a { color: #4a7c6b; text-decoration: none; }

/* ===== CANLILIK + MOBİL SIKILAŞTIRMA ===== */
html, body { overflow-x: hidden; }
body {
    background:
        radial-gradient(ellipse at top right, rgba(107, 154, 138, 0.12), transparent 45%),
        radial-gradient(ellipse at bottom left, rgba(232, 168, 124, 0.1), transparent 40%),
        #f8f4f0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes softPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50% { transform: scale(1.06); box-shadow: 0 6px 28px rgba(37,211,102,0.7); }
}
@keyframes shimmerStar {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(245,197,66,0.4)); }
    50% { filter: drop-shadow(0 0 8px rgba(245,197,66,0.9)); }
}

.banner { animation: fadeUp 0.55s ease both; }
.masoz-card,
.masoz-grid-page .card,
.hub-card,
.seo-bolge,
.home-blog-card {
    animation: fadeUp 0.5s ease both;
}
.masoz-card:nth-child(1), .masoz-grid-page .card:nth-child(1) { animation-delay: 0.05s; }
.masoz-card:nth-child(2), .masoz-grid-page .card:nth-child(2) { animation-delay: 0.1s; }
.masoz-card:nth-child(3), .masoz-grid-page .card:nth-child(3) { animation-delay: 0.15s; }
.masoz-card:nth-child(4), .masoz-grid-page .card:nth-child(4) { animation-delay: 0.2s; }
.masoz-card:nth-child(5), .masoz-grid-page .card:nth-child(5) { animation-delay: 0.25s; }

.masoz-card,
.masoz-grid-page .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.masoz-card:active,
.masoz-grid-page .card:active {
    transform: scale(0.97);
}
.masoz-uzmanlik {
    background: linear-gradient(135deg, #eaf4f0, #fef6e8) !important;
    border: 1px solid #d4e5dc;
}

.wa-float {
    animation: softPulse 2.4s ease-in-out infinite;
}
.banner h1 .yildiz {
    animation: shimmerStar 2.8s ease-in-out infinite;
}

.ilce-listesi .tip-kucuk a,
.semt-link-grid a {
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.ilce-listesi .tip-kucuk a:active,
.semt-link-grid a:active {
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .masoz-card:hover { transform: none; }
    .masoz-grid { gap: 8px !important; }
    .seo-bolgeler-wrapper { gap: 14px !important; }
    .seo-bolge { padding: 18px 14px !important; border-radius: 16px !important; }
    .seo-metin { border-radius: 16px !important; }
    .banner { border-radius: 14px !important; }
    /* Parmak dostu dokunma alanları */
    .ilce-listesi .tip-kucuk a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 4px 10px !important;
    }
    .tum-bolgeler-link {
        min-height: 48px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .masoz-card h2 { line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
    *:not(.yorum-kayan-track),
    *:not(.yorum-kayan-track)::before,
    *:not(.yorum-kayan-track)::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
