/* ================================================
   Servis Detay Sayfası CSS
   Tasarım: Barel fiyatları detay sayfası ile aynı dil
   ================================================ */

/* Sayfa Genel Arkaplanı */
.servis-detay-section {
    min-height: 100vh;
    background: #E8E8E8;
    position: relative;
    overflow: hidden;
    padding: 3rem 0 4rem;
}

.servis-detay-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(196, 30, 58, 0.3) 3px, transparent 3px),
        radial-gradient(circle at 80% 70%, rgba(196, 30, 58, 0.28) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(196, 30, 58, 0.08) 2.5px, transparent 2.5px);
    background-size: 60px 60px, 100px 100px, 80px 80px;
    background-position: 0 0, 50px 50px, 25px 25px;
    animation: servisDetayDots 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes servisDetayDots {
    0%   { background-position: 0 0, 50px 50px, 25px 25px; }
    100% { background-position: 60px 60px, 150px 150px, 105px 105px; }
}

.servis-detay-content {
    position: relative;
    z-index: 10;
}

/* Hero Bölümü */
.servis-detay-hero {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(196, 30, 58, 0.15);
    text-align: center;
}

.servis-detay-hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #2d3748;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.servis-detay-hero h1 .accent {
    color: #c41e3a;
}

.servis-detay-hero h1 .hero-ilce-sep {
    color: #a0aec0;
    font-weight: 400;
    margin: 0 0.3rem;
}

.servis-detay-hero h1 .hero-ilce {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a5568;
}

.servis-badge-row {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.servis-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.servis-badge.badge-red {
    background: rgba(196, 30, 58, 0.1);
    color: #c41e3a;
    border: 1px solid rgba(196, 30, 58, 0.3);
}

.servis-badge.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.servis-badge.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.servis-badge.badge-gold {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Geri Dön Linki */
.servis-geri-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c41e3a;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}
.servis-geri-link:hover {
    opacity: 0.75;
    color: #c41e3a;
}

/* Hizmet & Fiyat Tablosu Kartı */
.servis-fiyat-kart {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(196, 30, 58, 0.15);
    margin-bottom: 2rem;
}

.servis-fiyat-kart-baslik {
    background: linear-gradient(135deg, #c41e3a 0%, #9b1a2f 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.servis-fiyat-kart-baslik h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.servis-fiyat-kart-baslik i {
    font-size: 1.4rem;
}

/* Fiyat Tablosu */
.servis-fiyat-tablo {
    width: 100%;
    border-collapse: collapse;
}

.servis-fiyat-tablo thead th {
    background: #f7f7f7;
    color: #2d3748;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.servis-fiyat-tablo tbody tr {
    transition: background 0.2s;
}

.servis-fiyat-tablo tbody tr:hover {
    background: rgba(196, 30, 58, 0.04);
}

.servis-fiyat-tablo tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.95rem;
}

.servis-fiyat-tablo tbody tr:last-child td {
    border-bottom: none;
}

.servis-hizmet-adi {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.servis-hizmet-adi i {
    color: #c41e3a;
    width: 18px;
    text-align: center;
}

.servis-fiyat-deger {
    font-weight: 700;
    color: #c41e3a;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(196, 30, 58, 0.25);
}

/* Açıklama Kartı */
.servis-aciklama-kart {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(196, 30, 58, 0.1);
    margin-bottom: 2rem;
}

.servis-aciklama-kart h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.servis-aciklama-kart h2 i {
    color: #c41e3a;
}

.servis-aciklama-kart p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

/* CTA Kartı */
.servis-cta-kart {
    background: linear-gradient(135deg, #c41e3a 0%, #9b1a2f 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(196, 30, 58, 0.35);
    margin-bottom: 2rem;
}

.servis-cta-kart h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.servis-cta-kart p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.servis-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    color: #c41e3a;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.servis-cta-btn:hover {
    background: #2d3748;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Etiketler */
.servis-etiketler {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.servis-etiket {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.servis-etiket::before {
    content: '#';
    margin-right: 2px;
    opacity: 0.5;
}

.servis-etiket:hover {
    background: rgba(196, 30, 58, 0.08);
    color: #c41e3a;
    border-color: rgba(196, 30, 58, 0.25);
}

/* İkinci CTA butonu (telefon/mobil) */
.servis-cta-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.servis-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #c41e3a;
    border-color: transparent;
}

/* Kırmızı çizgi */
.red-line {
    height: 2px;
    background: linear-gradient(135deg, #b80211 0%, #f93f48 50%, #b80211 100%);
    box-shadow: 0 0 15px rgba(242, 39, 70, 0.8);
    z-index: 1000;
}

/* Responsive — tablet */
@media (max-width: 768px) {
    .servis-detay-hero h1 {
        font-size: 1.9rem;
    }

    .servis-fiyat-tablo thead th,
    .servis-fiyat-tablo tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }

    .servis-cta-kart h2 {
        font-size: 1.4rem;
    }

    .servis-cta-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

/* Responsive — telefon: tablo → kart düzeni */
@media (max-width: 576px) {
    /* Başlık satırını gizle */
    .servis-fiyat-tablo thead {
        display: none;
    }

    /* Her tbody satırı = kart */
    .servis-fiyat-tablo tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.25rem 0.5rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .servis-fiyat-tablo tbody tr:last-child {
        border-bottom: none;
    }

    /* Hizmet adı — tam genişlik, üst satır */
    .servis-fiyat-tablo tbody td:nth-child(1) {
        grid-column: 1 / -1;
        padding: 0;
        border: none;
        font-size: 0.9rem;
    }

    /* Süre — alt sol */
    .servis-fiyat-tablo tbody td:nth-child(2) {
        grid-column: 1;
        padding: 0;
        border: none;
        font-size: 0.78rem;
        color: #718096;
        align-self: center;
    }

    /* Süre'nin önüne ikon */
    .servis-fiyat-tablo tbody td:nth-child(2)::before {
        content: '⏱ ';
        font-size: 0.72rem;
    }

    /* Fiyat — alt sağ */
    .servis-fiyat-tablo tbody td:nth-child(3) {
        grid-column: 2;
        padding: 0;
        border: none;
        text-align: right;
        align-self: center;
    }

    .servis-fiyat-deger {
        font-size: 0.88rem;
    }

    /* Tablo başlığı biraz sıkıştır */
    .servis-fiyat-kart-baslik {
        padding: 1rem 1.25rem;
    }

    .servis-fiyat-kart-baslik h2 {
        font-size: 1.1rem;
    }

    /* Hero küçült */
    .servis-detay-hero {
        padding: 1.25rem 1rem;
    }

    .servis-detay-hero h1 {
        font-size: 1.5rem;
    }

    .servis-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* Açıklama kartları */
    .servis-aciklama-kart {
        padding: 1.25rem;
    }

    .servis-cta-kart {
        padding: 1.75rem 1.25rem;
    }
}
