@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --bg-color: #101218; /* Daha da koyu bir ana arka plan */
    --panel-color: #191d24; /* Paneller için biraz daha açık ama hala koyu */
    --text-color: #e8e8e8; /* Koyu arka planda iyi kontrast için */
    --subtle-text-color: #9fa8b7; /* Daha yumuşak gri-mavi tonu */
    --accent-color: #ff8c00; /* Canlı bir turuncu (DarkOrange) */
    --border-color: #2c313a; /* Koyu sınırlara uygun */
    --success-color: #4caf50; /* Başarı mesajı için yeşil */
    --error-color: #f44336; /* Hata mesajı için kırmızı */

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 15px; /* Genel sayfa padding'ini biraz azalttık */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    background-color: var(--panel-color);
    padding: 30px 40px; /* İç padding'i biraz azalttık */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-color);
    text-align: center;
    max-width: 800px; /* Max genişliği biraz daralttık */
    width: 95%;
    position: relative;
}

.ys-icon {
    font-family: var(--font-primary);
    font-size: 2em; /* Biraz küçülttük */
    font-weight: 700;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 8px 12px;
    display: inline-block;
    border-radius: 6px;
    margin-bottom: 20px; /* Boşluğu azalttık */
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.15);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.25);
}

.main-logo-wrapper {
    margin-bottom: 15px; /* Boşluğu azalttık */
}

.main-logo {
    font-family: var(--font-primary);
    font-size: 2.4em;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: block;
    line-height: 1.15;
}

.main-logo .subtitle {
    font-size: 0.4em;
    color: var(--subtle-text-color);
    letter-spacing: 1px;
    display: block;
    font-weight: 400;
    margin-top: 4px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0; /* Boşluğu azalttık */
    font-size: 1em;
}

.status-indicator .icon {
    font-size: 1.4em;
    margin-right: 8px;
    color: var(--accent-color);
    animation: pulse-status 2.2s infinite ease-in-out;
}

@keyframes pulse-status {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.status-indicator .text {
    font-family: var(--font-primary);
    font-weight: 600;
}

.info-text {
    font-size: 1em;
    line-height: 1.7; /* Satır aralığını biraz azalttık */
    margin: 15px auto 25px auto; /* Boşlukları azalttık */
    color: var(--subtle-text-color);
    max-width: 620px;
}

.system-message-area {
    font-family: var(--font-secondary);
    font-size: 0.9em;
    color: var(--accent-color);
    margin: 20px 0; /* Boşluğu azalttık */
    padding: 10px 15px;
    border: 1px dashed var(--border-color);
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    min-height: 28px;
    display: inline-block;
}

.coming-soon {
    font-family: var(--font-primary);
    font-size: 1.2em;
    margin-top: 20px; /* Boşluğu azalttık */
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Boşluğu azalttık */
    height: 18px;
}

.loading-bar-container {
    width: 140px;
    height: 7px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
    animation: loading-fill 2.2s infinite linear; /* Biraz hızlandırdık */
}

@keyframes loading-fill {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.telegram-signup {
    margin-top: 30px; /* Boşluğu azalttık */
    padding: 20px; /* İç padding'i azalttık */
    background: rgba(0,0,0,0.15);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
}

.telegram-signup p {
    font-size: 0.95em;
    margin-bottom: 15px; /* Boşluğu azalttık */
    color: var(--subtle-text-color);
}

.telegram-form-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.telegram-signup input[type="text"] {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.telegram-signup input[type="text"]::placeholder {
    color: #888;
}

.telegram-signup input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.telegram-signup button {
    font-family: var(--font-primary);
    background-color: var(--accent-color);
    color: #000; /* Turuncu üstünde siyah daha iyi okunabilir */
    border: none;
    padding: 12px 22px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.telegram-signup button:hover {
    background-color: #ffa500; /* Biraz daha açık turuncu */
    transform: translateY(-1px);
}

#message {
    margin-top: 15px; /* Boşluğu azalttık */
    font-size: 0.85em;
    min-height: 20px;
    font-weight: 600;
}
.success { color: var(--success-color); }
.error { color: var(--error-color); }

.site-purpose-section {
    margin-top: 35px; /* Boşluğu azalttık */
    padding: 30px; /* İç padding'i azalttık */
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: left;
}

.site-purpose-section h3 {
    font-family: var(--font-primary);
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px; /* Boşluğu azalttık */
    font-size: 1.45em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.site-purpose-section p {
    font-size: 0.95em;
    line-height: 1.8;
    color: var(--subtle-text-color);
    margin-bottom: 15px; /* Boşluğu azalttık */
}

.site-purpose-section strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px 15px;
    }
    .main-logo {
        font-size: 1.8em;
    }
    .ys-icon {
        font-size: 1.6em;
        padding: 6px 10px;
    }
    .info-text {
        font-size: 0.9em;
    }
    .coming-soon {
        font-size: 1.1em;
    }
    .telegram-form-group {
        flex-direction: column;
    }
    .telegram-signup input[type="text"],
    .telegram-signup button {
        width: 100%;
        max-width: none;
    }
    .site-purpose-section {
        padding: 20px;
    }
    .site-purpose-section h3 {
        font-size: 1.25em;
    }
}

/* Arka plan deseni - daha da ince */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.015) 1px, transparent 0); /* Opaklığı daha da azalttık */
    background-size: 25px 25px;
    z-index: -1;
    opacity: 0.4;
}