@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100vw; /* hiçbir öğe ekranı aşmasın */
}

html, body {
    width: 100%;
    overflow: hidden; /* yatay ve dikey scroll'u tamamen kaldır */
    font-family: 'Comic Neue', cursive, sans-serif;
    background-color: #fce4ec;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Kalp Animasyonları */
.heart {
    position: absolute;
    color: #ff8a80;
    opacity: 0.6;
    animation: floatUp linear infinite;
    z-index: 1;
    pointer-events: none; /* tıklamayı engelle */
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.5) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(-20vh) scale(1.5) rotate(360deg); opacity: 0; }
}

#heart-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 20px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(255, 105, 135, 0.25);
    width: 90%;
    max-width: 450px;
    z-index: 10;
    transition: all 0.5s ease;
    margin: 0 auto;
    overflow: hidden; /* içerik taşarsa kes */
}

.hidden {
    display: none !important;
}

img.gif-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: #4a4a4a;
    font-size: 26px;
    margin-bottom: 30px;
    line-height: 1.4;
    word-wrap: break-word;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    min-height: 60px;
    flex-wrap: nowrap; /* butonlar asla alt satıra inmez */
    width: 100%;
}

button {
    font-family: 'Comic Neue', cursive;
    font-size: 22px;
    padding: 12px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap; /* metinlerin satır atlamasını engelle */
}

#btn-evet {
    background-color: #ff4757;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    z-index: 2;
}

#btn-evet:hover {
    background-color: #ff6b81;
    transform: scale(1.1);
}

#btn-hayir {
    background-color: #747d8c;
    box-shadow: 0 5px 15px rgba(116, 125, 140, 0.4);
    position: relative;
    z-index: 100;
}

/* İkinci Sayfa Formu */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

input[type="tel"] {
    font-family: 'Comic Neue', cursive;
    font-size: 18px;
    padding: 15px;
    border: 2px solid #ff4757;
    border-radius: 50px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    outline: none;
    transition: box-shadow 0.3s;
    box-sizing: border-box;
}

input[type="tel"]:focus {
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

#btn-gonder {
    background-color: #2ed573;
    box-shadow: 0 5px 15px rgba(46, 213, 115, 0.4);
    width: 100%;
    max-width: 100%;
}

#btn-gonder:hover {
    background-color: #7bed9f;
    transform: scale(1.05);
}

#success-msg {
    margin-top: 20px;
    color: #ff4757;
    font-weight: bold;
    font-size: 18px;
    word-wrap: break-word;
}

/* ============================================
   📱 TÜM MOBİL EKRANLAR İÇİN MEDIA QUERY'LER
   ============================================ */

/* 768px ve altı */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .buttons {
        gap: 15px;
        min-height: 50px;
    }
    button {
        font-size: 18px;
        padding: 10px 25px;
    }
    img.gif-image {
        max-width: 160px;
    }
    input[type="tel"] {
        font-size: 16px;
        padding: 12px;
    }
    #btn-gonder {
        font-size: 18px;
        padding: 10px 25px;
    }
}

/* 480px ve altı (küçük telefon) */
@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }
    h1 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .buttons {
        gap: 10px;
        min-height: 45px;
    }
    button {
        font-size: 16px;
        padding: 8px 18px;
    }
    img.gif-image {
        max-width: 130px;
        margin-bottom: 15px;
    }
    input[type="tel"] {
        font-size: 16px;
        padding: 10px;
    }
    #btn-gonder {
        font-size: 16px;
        padding: 10px 20px;
    }
    #success-msg {
        font-size: 16px;
    }
}

/* 360px ve altı (çok küçük ekranlar) */
@media (max-width: 360px) {
    .container {
        padding: 15px 10px;
        border-radius: 20px;
    }
    h1 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .buttons {
        gap: 8px;
        min-height: 40px;
    }
    button {
        font-size: 13px;
        padding: 6px 12px;
        border-radius: 30px;
    }
    img.gif-image {
        max-width: 100px;
        margin-bottom: 10px;
    }
    input[type="tel"] {
        font-size: 14px;
        padding: 8px;
    }
    #btn-gonder {
        font-size: 14px;
        padding: 8px 16px;
    }
    #success-msg {
        font-size: 14px;
    }
}