/* ============================================================
   RATEM Yerel - Main Stylesheet
   ============================================================ */

:root {
    --primary: #1c2898;
    --primary-dark: #141d6e;
    --accent: #ff6600;
    --green: #03c03c;
    --text: #3b3d40;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #e9ecef;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    background: var(--white);
    margin: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar { padding: 12px 0; }

.site-logo { height: 55px; width: auto; }

.navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text) !important;
    padding: 8px 14px !important;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    min-width: 260px;
    padding: 8px;
}

.navbar-nav .dropdown-item {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s;
}

.navbar-nav .dropdown-item:hover { background: #f0f2ff; color: var(--primary); }

.btn-reklam {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 25px;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 22px !important;
    border: none;
    transition: all 0.2s;
}

.btn-reklam:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(28,40,152,0.3);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; }

.hero-slide {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28,40,152,0.75) 0%, rgba(28,40,152,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }

.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.carousel-indicators .active { background: var(--white); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 { font-size: 36px; font-weight: 800; margin: 0; }
.page-header p { font-size: 16px; opacity: 0.85; margin-top: 10px; }

.breadcrumb-wrap { padding: 12px 0; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.breadcrumb { margin: 0; font-size: 13px; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-light); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-divider {
    width: 60px; height: 4px;
    background: var(--accent);
    margin: 0 auto 20px;
    border-radius: 2px;
}
.section-divider.left { margin: 0 0 20px; }

/* ============================================================
   HOME — ABOUT BLOCK
   ============================================================ */
.about-section { background: var(--bg-light); }
.about-image { border-radius: 12px; box-shadow: var(--shadow-hover); }
.about-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   HIZMETLER CARDS
   ============================================================ */
.hizmet-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
    height: 100%;
}

.hizmet-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.hizmet-card-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #2d3cc9 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--white);
    margin-bottom: 18px;
}

.hizmet-card img {
    width: 100%; height: 180px;
    object-fit: contain; object-position: center;
    margin-bottom: 16px;
}

.hizmet-card h5 {
    font-size: 16px; font-weight: 700; color: var(--primary);
    margin-bottom: 10px;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.blog-card-img { position: relative; overflow: hidden; height: 220px; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-cat {
    position: absolute; top: 14px; left: 14px;
    background: var(--primary); color: var(--white);
    font-size: 11px; font-weight: 700; padding: 4px 12px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}

.blog-card-body { padding: 22px; }
.blog-card-body h5 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.blog-card-body p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.blog-card-body .btn-read { font-size: 13px; font-weight: 600; color: var(--primary); }
.blog-card-body .btn-read:hover { color: var(--accent); }

/* ============================================================
   TURKEY MAP SECTION
   ============================================================ */
.map-section { background: var(--bg-light); }

.turkey-map-container {
    position: relative;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.turkey-map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.turkey-map-container svg path {
    fill: #dde5f0;
    stroke: white;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.2s;
}

.turkey-map-container svg path:hover,
.turkey-map-container svg path.has-radio { fill: var(--primary); }
.turkey-map-container svg path.active { fill: var(--accent); }

.map-legend {
    display: flex; gap: 20px; flex-wrap: wrap;
    margin-top: 14px; font-size: 13px;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; }

/* ============================================================
   RADYO CARDS
   ============================================================ */
.radyo-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.radyo-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); transform: translateY(-3px); }

.radyo-card img {
    width: 80px; height: 80px;
    object-fit: contain; border-radius: 8px;
    margin-bottom: 12px;
}

.radyo-card h6 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.radyo-card .tarz-badge {
    font-size: 11px; padding: 2px 10px;
    border-radius: 10px; background: #eef0ff;
    color: var(--primary); font-weight: 600;
}

.badge-bilisim { background: #e8f5e9; color: #2e7d32; }
.badge-haber { background: #fff3e0; color: #e65100; }
.badge-adexq { background: #e3f2fd; color: #1565c0; }
.badge-riak { background: #fce4ec; color: #c62828; }

/* ============================================================
   ONLINE ISLEMLER
   ============================================================ */
.auth-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    padding: 40px;
    max-width: 550px; margin: 0 auto;
}

.auth-tabs .nav-link { font-weight: 600; border-radius: 8px 8px 0 0; }
.auth-tabs .nav-link.active { background: var(--primary); color: white; border-color: var(--primary); }

.form-control { border-radius: 8px; border: 1px solid #dee2e6; padding: 10px 14px; font-size: 14px; }
.form-control:focus { box-shadow: 0 0 0 3px rgba(28,40,152,0.1); border-color: var(--primary); }

.btn-primary { background: var(--primary); border-color: var(--primary); border-radius: 8px; font-weight: 600; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.dashboard-stat {
    text-align: center; padding: 20px;
    background: linear-gradient(135deg, var(--primary), #2d3cc9);
    border-radius: var(--radius); color: white;
}
.dashboard-stat h3 { font-size: 36px; font-weight: 800; margin: 0; }
.dashboard-stat p { margin: 0; opacity: 0.85; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-sidebar {
    width: 250px; min-height: 100vh;
    background: #1a2035;
    position: fixed; left: 0; top: 0;
    padding: 0; z-index: 100;
    overflow-y: auto;
}

.admin-sidebar .sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.admin-sidebar .sidebar-logo img { max-height: 45px; }

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 10px 20px !important;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}

.admin-sidebar .nav-link i { width: 20px; margin-right: 8px; }
.admin-sidebar .nav-category {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    padding: 16px 20px 6px;
}

.admin-content {
    margin-left: 250px;
    min-height: 100vh;
    background: #f4f6f9;
}

.admin-topbar {
    background: var(--white);
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 99;
}

.admin-page { padding: 24px; }

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.admin-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}

.admin-card-header h5 { margin: 0; font-weight: 700; font-size: 16px; }
.admin-card-body { padding: 24px; }

.table th { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-light); letter-spacing: 0.5px; }
.table td { vertical-align: middle; font-size: 14px; }

.badge-status-1 { background: #e8f5e9; color: #2e7d32; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.badge-status-0 { background: #fce4ec; color: #c62828; font-size: 12px; padding: 3px 10px; border-radius: 12px; }

/* ============================================================
   SINGLE PAGE / CONTENT
   ============================================================ */
.content-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.content-body h2, .content-body h3 { color: var(--primary); font-weight: 700; margin-top: 30px; }
.content-body img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============================================================
   FOOTER
   ============================================================ */
.logos-bar { border-top: 1px solid var(--border); }
.partner-logo { height: 50px; width: auto; object-fit: contain; filter: grayscale(30%); transition: filter 0.3s; }
.partner-logo:hover { filter: none; }

.site-footer {
    background: #0d1330;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-logo { max-height: 55px; }
.footer-logo-text { font-size: 20px; font-weight: 800; color: white; }
.footer-tagline { font-size: 13px; opacity: 0.7; }
.footer-contact { font-size: 13px; margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: white; }

.footer-heading {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: white; margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    margin-top: 40px;
    font-size: 13px;
}

.footer-social { display: flex; gap: 10px; justify-content: flex-end; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); color: white; }

/* ============================================================
   UTILS & BUTTONS
   ============================================================ */
.btn-outline-primary {
    color: var(--primary); border-color: var(--primary);
    border-radius: 8px; font-weight: 600; font-size: 14px;
}
.btn-outline-primary:hover { background: var(--primary); color: white; }

.btn-accent {
    background: var(--accent); color: white; border: none;
    border-radius: 8px; font-weight: 600; padding: 10px 24px;
    transition: all 0.2s;
}
.btn-accent:hover { background: #e55a00; transform: translateY(-1px); }

.alert-success { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; border-radius: var(--radius); }
.alert-danger { background: #fce4ec; border-color: #f48fb1; color: #c62828; border-radius: var(--radius); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .admin-sidebar { position: static; width: 100%; min-height: auto; }
    .admin-content { margin-left: 0; }
    .hero-slide { min-height: 350px; }
    .hero-content h1 { font-size: 28px; }
}

@media (max-width: 767px) {
    .section { padding: 50px 0; }
    .section-title { font-size: 26px; }
    .footer-social { justify-content: center; margin-top: 12px; }
}

/* ============================================================
   CUSTOM v2 - planning, user panel, cart
   ============================================================ */
.min-vh-70{min-height:70vh}
.btn-pill{border-radius:999px;padding:9px 18px;font-size:13px;font-weight:700}
.auth-card{border-radius:18px}
.auth-tabs .nav-link{font-weight:700;color:var(--primary)}
.auth-tabs .nav-link.active{background:var(--white);border-color:var(--border) var(--border) transparent;border-radius:10px 10px 0 0}
.planning-page{background:#232a5c;min-height:70vh}
.filter-panel,.results-panel,.cart-panel,.content-panel{border-radius:18px}
.scroll-box{max-height:230px;overflow:auto;border:1px solid var(--border);border-radius:12px;padding:10px;background:#fff}
.check-row{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:13px;border-bottom:1px dashed #eee}
.check-row:last-child{border-bottom:none}
.media-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--shadow);transition:.2s}
.media-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.media-logo{width:74px;height:74px;border-radius:50%;object-fit:contain;background:#f8f9fa;padding:8px;border:1px solid var(--border);margin-bottom:10px}
.media-meta{display:grid;gap:6px;margin-top:12px;color:#666}
.map-placeholder img{width:100%;max-height:240px;object-fit:contain}
.cart-row{padding:14px 0;border-bottom:1px solid var(--border)}
.cart-row:last-child{border-bottom:none}
.cart-logo{width:52px;height:52px;object-fit:contain;background:#f8f9fa;border:1px solid var(--border);padding:6px;border-radius:12px}
.summary-box{background:#f8f9fa;border-radius:16px;padding:22px;height:100%}
.success-icon{width:64px;height:64px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#22c55e;color:#fff;font-size:30px;margin-bottom:16px}
.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.plan-grid > div{background:#f8f9fa;border-radius:12px;padding:16px;border-left:4px solid var(--primary)}
.user-sidebar{border-radius:18px;overflow:hidden}
.user-sidebar .list-group-item{border:none;padding:16px 18px;font-weight:600;color:#2f3542}
.user-sidebar .list-group-item.active{background:#f4f6fb;color:var(--primary)}
.content-panel{background:#fff;padding:24px;box-shadow:var(--shadow)}
.panel-title{font-size:34px;font-weight:800;color:#1d264f}
.stat-card{background:#fff;border-radius:16px;padding:26px 20px;box-shadow:var(--shadow);text-align:center}
.stat-number{font-size:46px;font-weight:800;color:#1d264f;line-height:1}
.stat-label{font-weight:700;color:#243b67;margin-top:10px}
.request-card{border-radius:16px}
.admin-stat-card{background:#fff;border-radius:14px;padding:20px;box-shadow:var(--shadow)}
.admin-stat-card .num{font-size:30px;font-weight:800;color:var(--primary)}
.mini-stat{background:#f8f9fa;padding:16px;border-radius:12px}
@media (max-width: 768px){
  .plan-grid{grid-template-columns:1fr}
  .panel-title{font-size:26px}
}
