/**
 * Gördes Fiber - Ana Stil Dosyası
 * Modern ISP kurumsal tasarım, glassmorphism, animasyonlar
 */

:root {
    --primary: #0A84FF;
    --primary-dark: #0066CC;
    --secondary: #1ABC9C;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --bg: #F8FAFC;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.25);
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --gradient: linear-gradient(135deg, #0A84FF 0%, #1ABC9C 100%);
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a3d62 100%);
    --font: 'Poppins', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ========== Top Bar ========== */
.top-bar {
    background: var(--gradient-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a { color: rgba(255,255,255,.85); margin-right: 1.25rem; }
.top-bar a:hover { color: #fff; }
.btn-theme-toggle {
    background: rgba(255,255,255,.1); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
}

/* ========== Navbar ========== */
.main-nav {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    padding: 0.6rem 0;
}
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.35rem; color: var(--text) !important; font-weight: 500;
}
.brand-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; box-shadow: 0 4px 15px rgba(10,132,255,.35);
}
.brand-text strong { color: var(--primary); }
.main-nav .nav-link {
    color: var(--text) !important; font-weight: 500; font-size: 0.92rem;
    padding: 0.5rem 0.85rem !important; position: relative;
}
.main-nav .nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--gradient); transition: var(--transition); transform: translateX(-50%);
}
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { width: 60%; }
.btn-nav-cta {
    border-radius: 50px; padding: 0.5rem 1.25rem !important;
    background: var(--gradient) !important; border: none !important;
    box-shadow: 0 4px 15px rgba(10,132,255,.35); font-weight: 600;
}
.btn-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,132,255,.45); }

/* ========== Hero Slider ========== */
.hero-slider {
    position: relative; height: 85vh; min-height: 520px; max-height: 780px;
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    background: var(--gradient-dark);
    display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(10,132,255,.35) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(26,188,156,.25) 0%, transparent 40%),
        linear-gradient(135deg, #0a1628 0%, #0d2137 60%, #0a3d62 100%);
}
.hero-pattern {
    position: absolute; inset: 0; opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    position: relative; z-index: 2; color: #fff;
    animation: fadeUp 0.8s ease both;
}
.hero-content .eyebrow {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    font-size: 0.85rem; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,.15);
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.15rem; opacity: 0.9; max-width: 540px; margin-bottom: 1.75rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero {
    padding: 14px 28px; border-radius: 50px; font-weight: 600;
    border: none; font-size: 1rem; transition: var(--transition);
}
.btn-hero-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 8px 25px rgba(10,132,255,.4);
}
.btn-hero-primary:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 12px 30px rgba(10,132,255,.5); }
.btn-hero-outline {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.hero-nav {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 5; display: flex; gap: 10px;
}
.hero-dot {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
    background: transparent; cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: #fff; width: 32px; border-radius: 10px; }

/* Fiber Search Box */
.fiber-search-section {
    margin-top: -50px; position: relative; z-index: 10; padding: 0 15px;
}
.fiber-search-box {
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 1.75rem 2rem;
}
.fiber-search-box h3 {
    font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.fiber-search-box .form-select, .fiber-search-box .form-control {
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    padding: 0.7rem 1rem; font-family: var(--font);
}
.fiber-search-box .mb-3.position-relative {
    z-index: 20;
}
.fiber-suggest {
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    border-radius: 0 0 12px 12px;
}
.fiber-suggest.show { display: block; }
.fiber-suggest .list-group-item {
    cursor: pointer;
    border-left: 3px solid transparent;
}
.fiber-suggest .list-group-item:hover,
.fiber-suggest .list-group-item.active {
    background: rgba(10,132,255,.08);
    border-left-color: var(--primary);
}
.fiber-mini-map-wrap {
    margin: 1rem 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.fiber-result {
    margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
    display: none; animation: fadeUp 0.4s ease;
}
.fiber-result.show { display: block; }
/* Manisa Kent Rehberi tarzı kapı no etiketleri */
.fiber-door-label {
    background: transparent !important;
    border: none !important;
}
.fiber-door-label .door-no {
    display: inline-block;
    min-width: 22px;
    padding: 1px 5px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    color: #111;
    background: rgba(255,255,255,.92);
    border: 1.5px solid #2ECC71;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
    text-align: center;
    white-space: nowrap;
}
.fiber-focus-pin {
    background: transparent !important;
    border: none !important;
}
.fiber-focus-pin .focus-pin-outer {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #e74c3c;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
}
.fiber-focus-pin .focus-pin-inner {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}


/* ========== Sections ========== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .badge-label {
    display: inline-block; padding: 5px 14px; border-radius: 50px;
    background: rgba(10,132,255,.1); color: var(--primary);
    font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 0.75rem;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ========== Cards ========== */
.service-card, .package-card, .product-card, .blog-card, .project-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: var(--transition); height: 100%; overflow: hidden;
}
.service-card:hover, .package-card:hover, .product-card:hover, .blog-card:hover, .project-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-lg);
    border-color: rgba(10,132,255,.3);
}
.service-card { padding: 2rem 1.5rem; text-align: center; }
.service-icon {
    width: 70px; height: 70px; border-radius: 20px; margin: 0 auto 1.25rem;
    background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; transition: var(--transition);
    box-shadow: 0 8px 25px rgba(10,132,255,.3);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }
.service-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Package Cards */
.package-card { padding: 2rem; text-align: center; position: relative; }
.package-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(10,132,255,.06) 0%, var(--surface) 40%);
}
.package-card .featured-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gradient); color: #fff; padding: 4px 16px;
    border-radius: 50px; font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.package-speed {
    font-size: 2.5rem; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.package-speed small { font-size: 1rem; -webkit-text-fill-color: var(--text-muted); }
.package-price { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; }
.package-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.package-features { list-style: none; padding: 0; margin: 1.25rem 0; text-align: left; }
.package-features li {
    padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.package-features li i { color: var(--success); margin-right: 8px; }

/* About */
.about-section { background: var(--surface); }
.about-image {
    border-radius: var(--radius); overflow: hidden;
    background: var(--gradient-dark); min-height: 360px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.about-image .about-visual {
    text-align: center; color: #fff; padding: 2rem;
}
.about-image .about-visual i { font-size: 5rem; opacity: 0.9; margin-bottom: 1rem; }
.stat-box {
    background: var(--glass); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 1.25rem; text-align: center; transition: var(--transition);
}
.stat-box:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-box .num {
    font-size: 1.8rem; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-box .label { font-size: 0.85rem; color: var(--text-muted); }

/* Map Section */
.map-section #publicMap, #coverageMap, #contactMap {
    height: 500px; border-radius: var(--radius); z-index: 1;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.map-filters {
    background: var(--surface); border-radius: var(--radius);
    padding: 1.25rem; border: 1px solid var(--border); margin-bottom: 1rem;
}
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; }
.legend-dot.var { background: var(--success); }
.legend-dot.devam { background: var(--primary); }
.legend-dot.yok { background: var(--danger); }

/* Testimonials */
.testimonial-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 1.75rem; border: 1px solid var(--border);
    box-shadow: var(--shadow); height: 100%;
}
.testimonial-card .stars { color: var(--warning); margin-bottom: 0.75rem; }
.testimonial-card .author { font-weight: 600; margin-top: 1rem; }
.testimonial-card .author span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--text-muted); }

/* FAQ */
.accordion-item {
    border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
    margin-bottom: 0.75rem; overflow: hidden; background: var(--surface);
}
.accordion-button { font-family: var(--font); font-weight: 600; background: var(--surface) !important; }
.accordion-button:not(.collapsed) { color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--primary); }

/* Page Hero (inner pages) */
.page-hero {
    background: var(--gradient-dark); color: #fff;
    padding: 80px 0 60px; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(10,132,255,.3) 0%, transparent 50%);
}
.page-hero h1 { font-weight: 800; position: relative; }
.page-hero p { opacity: 0.85; position: relative; }

/* Forms */
.form-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.form-control, .form-select {
    border-radius: var(--radius-sm); padding: 0.7rem 1rem;
    border: 1px solid var(--border); font-family: var(--font);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,132,255,.15);
}
.btn-primary {
    background: var(--gradient) !important; border: none !important;
    border-radius: 50px; padding: 0.7rem 1.75rem; font-weight: 600;
    box-shadow: 0 4px 15px rgba(10,132,255,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,132,255,.4); }
.btn-secondary {
    background: var(--secondary) !important; border: none !important;
    border-radius: 50px; font-weight: 600;
}

/* Product / Blog cards */
.product-card .product-img, .blog-card .blog-img, .project-card .project-img {
    height: 200px; background: var(--gradient-dark);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 3rem; overflow: hidden;
}
.product-card .product-img img, .blog-card .blog-img img, .project-card .project-img img {
    width: 100%; height: 100%; object-fit: cover; transition: var(--transition);
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body, .blog-body, .project-body { padding: 1.25rem; }
.product-specs { font-size: 0.85rem; color: var(--text-muted); }
.product-specs span { display: inline-block; margin-right: 8px; margin-bottom: 4px; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); }

/* Footer */
.site-footer {
    background: var(--gradient-dark); color: rgba(255,255,255,.8);
    padding: 0 0 30px; margin-top: 60px; position: relative;
}
.footer-wave { color: var(--gradient-dark); margin-top: -1px; line-height: 0; }
.footer-wave svg { width: 100%; height: 60px; display: block; }
.site-footer .container { padding-top: 20px; }
.footer-brand { font-size: 1.4rem; color: #fff; display: flex; align-items: center; gap: 10px; }
.footer-desc { font-size: 0.9rem; opacity: 0.75; }
.social-links { display: flex; gap: 10px; margin-top: 1rem; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.site-footer h5 { color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: #fff; }
.footer-contact i { width: 20px; color: var(--secondary); margin-right: 6px; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 1.5rem 0 1rem; }
.footer-bottom { font-size: 0.85rem; opacity: 0.7; }
.footer-bottom a { color: rgba(255,255,255,.8); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 25px; right: 25px; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 6px 25px rgba(37,211,102,.45);
    animation: pulse-wa 2s infinite; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 6px 25px rgba(37,211,102,.45); }
    50% { box-shadow: 0 6px 35px rgba(37,211,102,.7); }
}
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Leaflet popup custom */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important; font-family: var(--font) !important;
}
.fiber-popup h5 { font-weight: 700; margin-bottom: 0.5rem; }
.fiber-popup .badge { font-weight: 500; }

/* Responsive */
@media (max-width: 991px) {
    .hero-slider { height: 70vh; min-height: 450px; }
    .fiber-search-section { margin-top: -30px; }
    .section { padding: 60px 0; }
}
@media (max-width: 575px) {
    .hero-slider { height: auto; min-height: 420px; padding: 60px 0; }
    .fiber-search-box { padding: 1.25rem; }
    .package-speed { font-size: 2rem; }
}
