@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0f0f11;
    background-image: radial-gradient(circle at top right, #1f1212, #0f0f11);
    color: #ffffff;
    padding: 20px; /* Kenarlara yapışmaması için boşluk */
}

.app-container {
    background: #1a1a1d;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.header h1 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #e5e5e5;
}

.header span {
    color: #ff0000;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.input-group input {
    flex: 1;
    background: #25252b;
    border: 1px solid #333;
    color: white;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.2);
}

.input-group button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group button:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* Sonuç Ekranı */
.result-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.result-container.active {
    display: block;
}

.channel-info {
    margin-bottom: 20px;
}

.channel-info img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #333;
    margin-bottom: 15px;
    object-fit: cover;
}

.channel-info h2 {
    font-size: 20px;
    font-weight: 600;
}

.counter-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.count {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
}

.status {
    margin-top: 15px;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.status .dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: pulse 1.5s infinite;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

/* ========================================= */
/* MOBİL UYARLILIK (RESPONSIVE) AYARLARI     */
/* ========================================= */

@media (max-width: 480px) {
    .app-container {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .header h1 {
        font-size: 18px;
    }

    .input-group {
        flex-direction: column; /* Mobilde buton inputun altına geçer */
        gap: 12px;
    }

    .input-group button {
        padding: 14px 24px; /* Buton yüksekliğini artırarak dokunmayı kolaylaştırdık */
        width: 100%;
    }

    .channel-info img {
        width: 70px;
        height: 70px;
    }

    .channel-info h2 {
        font-size: 18px;
    }

    .counter-box {
        padding: 20px;
    }

    .count {
        font-size: 2.5rem; /* Devasa sayıyı mobilde biraz küçülttük */
    }
}