/* --- Cihaz Sayfası Resim Alanı --- */
.device-img-float {
    float: right;
    width: 42%;
    max-width: 380px;
    margin: 0 0 1.25rem 1.75rem;
    border-radius: 0.625rem;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
}

.device-img-float-left {
    float: left;
    width: 42%;
    max-width: 380px;
    margin: 0 1.75rem 1.25rem 0;
    border-radius: 0.625rem;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
}

.content-block-clearfix::after {
    content: "";
    display: table;
    clear: both;
}


.device-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.8125rem;
    background: #f3f4f6;
}

.device-img-placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: #d1d5db;
}

@media (max-width: 600px) {
    .device-img-float {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }
}


/* --- Genel Dokunma / Tıklama Efekti --- */
a,
button {
    -webkit-tap-highlight-color: transparent;
    /* dokunma highlight'ı kaldır, kendi efektimizi koyacağız */
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

/* --- Temel --- */
html,
body {
    font-family: 'Roboto', sans-serif;
    overscroll-behavior: none;
}

:root {
    --brand-blue: #1E9BE8;
    /* Logo ana mavi (parlak) */
    --brand-dark-blue: #1565C0;
    /* Logo koyu mavi */
    --brand-light-blue: #EBF6FE;
    /* Açık mavi arka plan */
}



/* --- Layout --- */
.page-wrapper {
    background-color: #f3f4f6;
    /* bg-gray-100 */
    color: #1f2937;
    /* text-gray-800 */
    display: flex;
    flex-direction: column;
    min-height: 90vh;
}

.page-main {
    background-color: #ffffff;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 0.75rem;
    position: relative;
}

@media (min-width: 768px) {
    .page-main {
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 2rem;
    }
}

/* --- Header --- */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.site-header-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-badge {
    background-color: var(--brand-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
    transition: color 0.2s;
}

.logo-text:hover {
    color: var(--brand-blue);
}

.header-phone-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-blue);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: background-color 0.3s;
    text-decoration: none;
}

.header-phone-btn:hover {
    background-color: var(--brand-dark-blue);
}

/* --- Navbar --- */
.site-nav {
    background-color: var(--brand-dark-blue);
    color: #ffffff;
    width: 100%;
    display: none;
}

@media (min-width: 768px) {
    .site-nav {
        display: block;
    }
}

.site-nav-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 0;
    list-style: none;
    margin: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--brand-blue);
}

/* --- Sayfa Başlığı (h1) --- */
.page-title {
    font-size: 1.875rem;
    font-weight: 400;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* --- Bölüm Başlığı (h2-alt) --- */
.content-heading {
    color: #374151;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* --- İçerik Paragrafı --- */
.content-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* --- CTA Telefon Bandı --- */
.cta-banner {
    background-color: #f0f2f5;
    border-radius: 0.375rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cta-banner {
        flex-direction: row;
        justify-content: flex-start;
    }
}

.cta-banner-label {
    color: #374151;
}

@media (min-width: 768px) {
    .cta-banner-label {
        font-size: 1.125rem;
    }
}

.cta-phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-blue);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.cta-phone-link:hover {
    color: var(--brand-dark-blue);
}

/* --- Bölüm Ayırıcı --- */
.section-divider {
    border-top: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

/* --- Bölüm Başlığı (üst kısım) --- */
.section-title {
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* --- Cihaz Grid --- */
.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .device-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
    }
}

@media (min-width: 768px) {
    .device-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .device-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* --- Cihaz Kartı --- */
.device-card {
    background-color: #5a5c5f;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    aspect-ratio: 4/5;
    max-width: 110px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.2s;
}

.device-card:hover {
    background-color: #374151;
}

.device-card.active-filter {
    background-color: #EA2628;
}

.device-card svg {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.device-card span {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0.25rem;
}

/* --- Şehir Grid --- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 300;
}

@media (min-width: 640px) {
    .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .city-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.city-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.city-link:hover {
    color: var(--brand-blue);
}

/* --- Servis Özellikleri --- */
.features-section {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 50%;
    margin-bottom: 1rem;
    color: #374151;
}

.feature-icon-wrapper svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
}

.feature-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.feature-text {
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1.5;
}

/* --- Müşteri Yorumları Carousel --- */
.reviews-section {
    padding-top: 1rem;
    padding-bottom: 2rem;
    position: relative;
    max-width: 100%;
}

.slider-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
    /* Keep a little padding so card shadows aren't clipped */
    padding: 0.5rem 0;
}

.reviews-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease-in-out;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    min-width: 250px;
    /* Calculate 5 cards per view max width when container is ~1200 minus gap:
       ((1200 - (4 * 16)) / 5) = ~227px, so 230-240 is ideal to fit 5 tightly */
    flex: 0 0 calc(20% - 0.8rem);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 1280px) {
    .review-card {
        flex: 0 0 calc(25% - 0.75rem);
        /* 4 cards */
    }
}

@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 0.666rem);
        /* 3 cards */
    }
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 0.5rem);
        /* 2 cards */
    }
}

@media (max-width: 480px) {
    .review-card {
        flex: 0 0 90%;
        margin: 0 auto;
    }

    /* 1 card */
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider-btn {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.2s;
}

.slider-btn:hover {
    background-color: #f3f4f6;
    color: var(--brand-blue);
    border-color: #d1d5db;
}

.slider-prev {
    left: -1rem;
}

.slider-next {
    right: -1rem;
}

@media (max-width: 600px) {

    .slider-prev,
    .slider-next {
        /* Enable buttons to be visible on touch screens */
        width: 2rem;
        height: 2rem;
    }

    .slider-prev {
        left: -0.5rem;
    }

    .slider-next {
        right: -0.5rem;
    }

    /* Additional swipe indication shadow maybe... */

    .slider-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .review-card {
        scroll-snap-align: center;
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--brand-dark-blue);
    color: #9ca3af;
    padding: 1.5rem 0;
    width: 100%;
    margin-top: auto;
}

.site-footer-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    display: grid;
    gap: 1.25rem;
    font-size: 0.8125rem;
}

@media (min-width: 768px) {
    .site-footer-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-social-btn {
    display: inline-block;
    background-color: #374151;
    padding: 0.5rem;
    border-radius: 0.25rem;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-right: 0.5rem;
}

.footer-social-btn:hover {
    background-color: var(--brand-blue);
}

.footer-bottom {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1rem 0;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 0.75rem;
    margin-top: 1.25rem;
}

/* --- Mobil CTA Butonu --- */
.mobile-cta-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0 1rem 1rem;
    display: block;
}

@media (min-width: 768px) {
    .mobile-cta-wrapper {
        display: none;
    }
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background-color: var(--brand-blue);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.mobile-cta-btn svg {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.mobile-cta-btn:hover {
    background-color: var(--brand-dark-blue);
}

.mobile-cta-btn:active {
    background-color: var(--brand-dark-blue);
    transform: scale(0.95);
}

/* Pulse animasyonu */
@keyframes cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 155, 232, 0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(30, 155, 232, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(30, 155, 232, 0);
    }
}

.mobile-cta-btn {
    animation: cta-pulse 2s ease-out infinite;
}

/* =============================================
   Dokunma / Tıklama Efektleri (Mobil)
   ============================================= */

/* Cihaz kartı: tıklandığında küçülür ve koyulaşır */
.device-card:active {
    transform: scale(0.93);
    background-color: #374151;
    opacity: 0.9;
}

/* Şehir linkleri: tıklandığında maviye döner ve hafif kayar */
.city-link:active {
    color: var(--brand-blue);
    transform: translateX(3px);
}

/* Telefon butonu (header): tıklandığında küçülür */
.header-phone-btn:active {
    transform: scale(0.95);
    background-color: var(--brand-dark-blue);
}

/* CTA telefon linki (sayfa içi): tıklandığında hafif küçülür */
.cta-phone-link:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Footer linkleri: tıklandığında beyazlaşır */
.footer-link:active {
    color: #ffffff;
    transform: translateX(3px);
}

/* Footer sosyal butonlar: tıklandığında kırmızıya döner ve küçülür */
.footer-social-btn:active {
    background-color: var(--brand-blue);
    transform: scale(0.9);
}

/* Nav linkleri: tıklandığında kırmızıya döner */
.nav-link:active {
    color: var(--brand-blue);
}

/* Logo: tıklandığında hafif büyür */
.logo-text:active {
    transform: scale(1.03);
}