/*
Theme Name: Rruges Resmi Temasi
Theme URI: https://rruges.com
Author: Edip Vardarli
Description: Rruges.com WordPress + Firebase + Flutter entegrasyonuna sahip özel, hafif ve yüksek performanslı kurumsal tema.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: rruges
*/

*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}
.header {
    background-color: #00247D; /* Kosova Bayrak Mavisi */
    padding: 15px 40px;
    display: block;
    border-bottom: 4px solid #FFC72C; /* Altın Sarısı */
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}
.logo span {
    color: #FFC72C;
}
.nav-right {
    display: flex;
    align-items: center;
}
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #FFC72C;
}
.lang-selector {
    margin-left: 25px;
    background-color: #001854;
    color: #ffffff;
    border: 1px solid #FFC72C;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

/* ================= HERO ALANI (Z-INDEX VE ERİME KATMANLARI RECORE) ================= */
.hero {
    background-color: #001854; /* Temel kurumsal derin lacivert taban */
    color: #ffffff;
    padding: 140px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* --- KATMAN 1: HAM GÖRSELLER (En Altta) --- */
/* Sol Arka Plan (Taksi) - Genişlik %60 yapıldı ki tam ortada sağ tarafla iç içe geçebilsin */
.hero .hero-bg-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 60%; 
    height: 100%;
    background: url('assets/img/taxi-hero.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Görsel netliği taban rengiyle yumuşatılarak korundu */
    pointer-events: none;
    z-index: 1;
}

/* Sağ Arka Plan (Otobüs) - Genişlik %60 yapıldı, sol tarafla harmanlanma alanı açıldı */
.hero .hero-bg-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%; 
    height: 100%;
    background: url('assets/img/bus-hero.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

/* --- KATMAN 2: SİHİRLİ ERİTME MASKELERİ (Görsellerin Tam Üstünde) --- */
/* Sol görseli (Taksi) tam ortada duman gibi eriterek laciverte gömen maske */
.hero .hero-bg-left::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 24, 90, 0) 0%, rgba(0, 24, 90, 0.4) 40%, #001854 85%, #001854 100%);
    z-index: 2;
}

/* Sağ görseli (Otobüs) sola doğru kayarken pürüzsüzce laciverte eriten maske */
.hero .hero-bg-right::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 24, 90, 0) 0%, rgba(0, 24, 90, 0.4) 40%, #001854 85%, #001854 100%);
    z-index: 2;
}

/* --- KATMAN 3: GENEL ATMOSFER VE DİKEY DERİNLİK --- */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* Yukarıdan aşağıya sinematik bir karartma atarak başlık ve buton kontrastını artırır */
    background: linear-gradient(to bottom, rgba(0, 36, 125, 0.2) 0%, rgba(0, 24, 90, 0.5) 100%);
    z-index: 3;
    pointer-events: none;
}

/* --- KATMAN 4: ETKİLEŞİMLİ İÇERİK (En Üst Kürsüde) --- */
.hero-content {
    position: relative;
    z-index: 4; /* Tüm maskelerin üstüne çıkartıldı; form, inputlar ve butonlar sorunsuz tıklanır */
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 42px;
    margin: 0 0 25px 0;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 18px;
    margin: 0 auto 40px auto;
    color: #e0e6f7;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.download-buttons {
    margin-bottom: 20px;
}
.btn {
    display: inline-block;
    background-color: #FFC72C;
    color: #00247D;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    margin: 0 10px 15px 10px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.btn:hover {
    transform: translateY(-2px);
    background-color: #ffe066;
}
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: none;
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

/* RESPONSIVE MODÜLLER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.section-title {
    text-align: center;
    font-size: 28px;
    color: #00247D;
    margin-bottom: 40px;
    font-weight: 700;
}
.modules-wrapper {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}
.module-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e1e8f5;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 36, 125, 0.05);
    border-top: 5px solid #00247D;
}
.module-card.taxi {
    border-top-color: #FFC72C;
}
.module-title {
    font-size: 22px;
    color: #00247D;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}
.module-card p {
    color: #666666;
    font-size: 15px;
    margin-bottom: 25px;
}
.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.feature-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: #444444;
}
.feature-list li::before {
    content: "✓";
    color: #00247D;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}
.module-card.taxi .feature-list li::before {
    color: #FFC72C;
}

/* WEB KAYIT FORMU TASARIMI */
.rruges-form-container {
    max-width: 450px;
    margin: 30px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 36, 125, 0.1);
    border: 1px solid #e1e8f5;
}
.form-group-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.toggle-box {
    flex: 1;
    cursor: pointer;
    text-align: center;
}
.toggle-box input {
    display: none;
}
.toggle-box span {
    display: block;
    padding: 12px;
    background: #f4f7fc;
    border: 2px solid #e1e8f5;
    border-radius: 8px;
    font-weight: 600;
    color: #00247D;
    transition: all 0.2s;
}
.toggle-box input:checked + span {
    background: #00247D;
    color: #ffffff;
    border-color: #00247D;
}
.form-input-row {
    margin-bottom: 18px;
}
.form-input-row input, .form-input-row select {
    width: 100%;
    padding: 14px;
    border: 1px solid #c8d4ed;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.form-input-row input:focus, .form-input-row select:focus {
    border-color: #FFC72C;
    box-shadow: 0 0 5px rgba(255, 199, 44, 0.3);
}
.rruges-submit-btn {
    width: 100%;
    background: #FFC72C;
    color: #00247D;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.rruges-submit-btn:hover {
    background: #ffe066;
}
.form-response-msg {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* FOOTER */
.footer {
    background-color: #001854;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-top: 4px solid #FFC72C;
    font-size: 14px;
}
.footer p {
    margin: 5px 0;
    color: #b0c2f2;
}
.footer .white-text {
    color: #ffffff;
    font-weight: bold;
}

/* HAKKIMIZDA BÖLÜMÜ STİLLERİ */
.about-section {
    margin-top: 80px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 36, 125, 0.05);
    border: 1px solid #e1e8f5;
}
.about-wrapper {
    display: flex;
    min-height: 400px;
}
.about-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
}
.about-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-title {
    font-size: 28px;
    color: #00247D;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}
.about-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #FFC72C;
    margin-top: 8px;
}
.about-text-lead {
    font-size: 18px;
    font-weight: 600;
    color: #001854;
    margin-bottom: 20px;
}
.about-content p {
    color: #555555;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}
.about-content p:last-child {
    margin-bottom: 0;
}

/* ================= MEDIA QUERY - MOBİL UYUMLULUK (RE-OPTIMIZED) ================= */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-right {
        flex-direction: column;
        gap: 10px;
    }
    .nav-links a {
        margin: 0 10px;
    }
    .lang-selector {
        margin-left: 0;
        margin-top: 5px;
    }
    .hero {
        padding: 80px 20px;
    }
    /* Mobilde taksi tüm zemini kaplar */
    .hero .hero-bg-left {
        width: 100%;
        opacity: 0.45;
    }
    /* Mobilde dikey eksende yumuşakça erimesi için maskeyi ezerek dikey (to bottom) forma çekiyoruz */
    .hero .hero-bg-left::after {
        background: linear-gradient(to bottom, rgba(0, 24, 90, 0) 0%, rgba(0, 24, 90, 0.4) 50%, #001854 100%);
    }
    .hero .hero-bg-right {
        display: none; /* Otobüs mobilde tamamen devre dışı */
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero p {
        font-size: 16px;
    }
    .modules-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    .module-card {
        width: 100%;
    }
    .about-wrapper {
        flex-direction: column;
    }
    .about-image {
        width: 100%;
        height: 250px;
        min-height: 250px;
    }
    .about-content {
        padding: 30px 20px;
    }
}