/*
Theme Name: Turgay İşler Sakarya Fayans & Seramik
Theme URI: https://www.turgayisler.biz.tr
Author: Turgay İşler
Version: 12.0.0
Description: Sakarya, Hendek ve Düzce Fayans Ustası Teması. Harici API/JSON Kaynağından Otomatik Güncellenen Dinamik Fiyatlı Maliyet Hesaplama Aracı Dahil.
Text Domain: turgayisler-theme
*/

* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    color: #2c3e50;
    background-color: #f4f6f9;
    line-height: 1.6;
    padding-top: 70px;
}

header.site-header {
    background: #102a43;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.logo h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.logo span {
    color: #f6ad55;
    font-size: 0.75rem;
    display: block;
    font-weight: 500;
}

.menu-toggle-btn {
    background: #f6ad55;
    color: #102a43;
    border: none;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

nav.main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #102a43;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

nav.main-nav.active {
    display: block;
}

nav.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

nav.main-nav li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav.main-nav li a:hover {
    background: #f6ad55;
    color: #102a43;
}

@media (min-width: 851px) {
    .menu-toggle-btn { display: none; }
    nav.main-nav {
        display: block !important;
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        border-top: none;
    }
    nav.main-nav ul {
        flex-direction: row;
        gap: 8px;
        padding: 0;
    }
    nav.main-nav li a {
        padding: 8px 12px;
        border-radius: 4px;
        border-bottom: none;
        background: rgba(255,255,255,0.08);
    }
}

.hero-box {
    background: linear-gradient(135deg, #102a43 0%, #243b53 100%);
    color: #ffffff;
    padding: 35px 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.hero-box h1 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
}

.hero-box p {
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
    color: #e2e8f0;
}

.cta-flex {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.btn-phone { background: #e53e3e; color: #fff; }
.btn-wp { background: #25d366; color: #fff; }
.btn-map { background: #3182ce; color: #fff; }

.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.content-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.content-card h1, .content-card h2 {
    color: #102a43;
    margin-top: 0;
}

/* --- AUTO CALCULATOR STYLES --- */
.calc-wrapper {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.price-status-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.calc-field label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #102a43;
    margin-bottom: 6px;
}

.calc-field input, .calc-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.calc-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px 25px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: background 0.2s;
}

.calc-btn:hover {
    background: #1d4ed8;
}

.calc-results {
    background: #102a43;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.calc-results h3 {
    color: #f6ad55;
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.calc-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #25d366;
    border-top: 2px dashed rgba(255,255,255,0.2);
    padding-top: 10px;
    margin-top: 10px;
}

/* --- STATS & PROCESS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #f6ad55;
    padding: 18px 10px;
    text-align: center;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #102a43;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.process-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.process-step {
    display: inline-block;
    background: #102a43;
    color: #f6ad55;
    font-weight: 800;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.contact-card {
    background: #f8fafc;
    border-left: 4px solid #3182ce;
    padding: 20px;
    border-radius: 8px;
}

.contact-card.wp { border-left-color: #25d366; }
.contact-card.phone { border-left-color: #e53e3e; }

.contact-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #102a43;
}

.gallery-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
}

.article-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border-left: 5px solid #3182ce;
}

.article-card h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.article-card h2 a {
    color: #102a43;
    text-decoration: none;
}

.article-card h2 a:hover {
    color: #3182ce;
}

.post-featured-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.post-gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.post-gallery-grid img:hover {
    transform: scale(1.03);
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-box {
    background: #102a43;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #fff;
    padding: 15px;
}

.video-box h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #f6ad55;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-excerpt {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 15px;
}

.btn-readmore {
    display: inline-block;
    background: #102a43;
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    margin-top: 0;
    color: #102a43;
    border-bottom: 2px solid #f6ad55;
    padding-bottom: 8px;
    font-size: 1.1rem;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #edf2f7;
    padding-bottom: 6px;
}

.sidebar-card a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

footer.site-footer {
    background: #040e18;
    color: #9fb3c8;
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 40px;
}

footer.site-footer a {
    color: #f6ad55;
    text-decoration: none;
}

@media (max-width: 850px) {
    .main-layout { grid-template-columns: 1fr; }
    .btn { width: 100%; }
}
