/* Temel Ayarlar */
html {
    scroll-behavior: smooth;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #000;
}

/* Bölüm Yapısı */
.page-section {
    height: 100vh;
    /* Mobil tarayıcı adres çubuğu sorununu önlemek için */
    height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-size: cover;
    background-position: center center;
    position: relative;
    padding-bottom: 80px;
    /* Alttan boşluk */
    position: relative;
    overflow: hidden;
}

    /* Maskeleme Katmanı: Resimdeki gömülü yazıları gizler */
    .page-section::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 35%;
        /* Resmin alt %35'lik kısmını kapatır */
        z-index: 1;
        pointer-events: none;
        /* Tıklamaları engellemez */
    }

/* Kriko bölümü için siyah/kırmızımsı geçiş */
.section-kriko::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 50%, transparent 100%);
}

/* Üfle bölümü için siyah/lacivert geçiş */
.section-ufle::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
}

/* HTML Formunu maskenin üstüne çıkarıyoruz */
.newsletter-container {
    position: relative;
    z-index: 5;
    /* Maskenin üstünde kalması için */
    margin-bottom: 20px;
    /* Alttan biraz yukarıda dursun */
}

/* Arka Planlar */
.section-kriko {
    background-image: url('../krikoo.jpg');
}

.section-ufle {
    background-image: url('../uflee.jpg');
}

/* Form Konteyneri */
.newsletter-container {
    text-align: center;
    z-index: 10;
    width: 90%;
    /* Mobilde kenarlardan boşluk bırakır */
    max-width: 500px;
}

.newsletter-text {
    font-size: clamp(1rem, 4vw, 1.2rem);
    /* Dinamik yazı boyutu */
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.4;
}

/* Form Yapısı */
.form-row {
    display: flex;
    flex-direction: row;
    /* Varsayılan yan yana */
    gap: 10px;
}

.glow-element {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid;
    border-radius: 8px;
    padding: 14px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

/* Renk Temaları */
.section-kriko .glow-element {
    border-color: #ff4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
}

.section-ufle .glow-element {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

input[type="email"] {
    flex: 2;
}

.submit-btn {
    flex: 1;
    cursor: pointer;
    font-weight: bold;
}

/* --- RESPONSIVE AYARLAR (MEDİA QUERIES) --- */

/* Tablet ve Altı (768px'den küçük ekranlar) */
@media (max-width: 768px) {
    .page-section {
        padding-bottom: 60px;
    }

    .newsletter-text {
        font-size: 1rem;
    }
}

/* Telefon (500px'den küçük ekranlar) */
@media (max-width: 500px) {
    .form-row {
        flex-direction: column;
        /* Mobilde alt alta sırala */
        width: 100%;
    }

    input[type="email"],
    .submit-btn {
        width: 100%;
        /* Tam genişlik kaplasınlar */
        box-sizing: border-box;
    }

    .newsletter-text {
        margin-bottom: 15px;
        padding: 0 10px;
    }

    /* Mobilde görselin odağını ayarlama */
    .page-section {
        background-position: 55% center;
    }
}

/* Ölçüm Alanı Stilleri */
.measurement-box {
    margin-bottom: 10px;
    /* Bültenle arasındaki mesafe */
    padding: 20px;
    width: 250px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    /* Çok hafif şeffaf zemin */
    backdrop-filter: blur(5px);
    /* Arkayı hafif bulanıklaştırır, resmi kapatmaz */
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.5s ease;
    z-index: 10;
    cursor: pointer;
}

    .measurement-box:hover {
        background: rgba(0, 212, 255, 0.1);
        border-color: #00d4ff;
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
        transform: translateY(-5px);
    }

.number-display {
    font-size: 4rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    margin-bottom: 10px;
}

.warning-text {
    font-size: 0.8rem;
    min-height: 24px;
    font-weight: 500;
    transition: 0.3s;
}

/* Durum Renkleri */
.safe {
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.danger {
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}
