/* =================================================================
   Ofizyo Platformu - ORTAK STİL DOSYASI (main.css)
   Dikey Ortalama ve Layout Düzeltmeleri Yapıldı
   ================================================================= */

/* --- 1. RENK PALETİ VE TEMEL AYARLAR --- */
:root {
    --bg-dark: #0A0C10;
    --bg-panel: #1c1e24;
    --border-color: #313541;
    --text-primary: #F0F2F5;
    --text-secondary: #8A919E;
    --accent-indigo: #e06500;
    /* Ana Renk */
    --accent-green: #00bf30;
    --accent-glow: rgba(224, 101, 0, 0.4);
    --warning: #FBBF24;
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* --- 2. GENEL STİLLER --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238A919E' fill-opacity='0.2'%3E%3Cpath d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h96V0h1v95h-1z'/%3E%3C/g%3E%3C/svg%3E");
    animation: textureScroll 60s linear infinite;
}

@keyframes textureScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- 3. ANA SAYFA YAPISI (DÜZELTME BURADA!) --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-area {
    flex-grow: 1;
    /* Bu satır, content-area'nın header ve footer arasındaki tüm boşluğu doldurmasını sağlar */
    display: flex;
    /* İçindeki elemanların dikey olarak genişleyebilmesi için gereklidir */
    flex-direction: column;
}

/* --- 4. HEADER (GRID İLE GÜÇLENDİRİLDİ) --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    width: 100%;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background-color: rgba(30, 33, 41, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-logo {
    justify-self: start;
    padding-left: 22px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 24px;
    justify-self: center;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-indigo);
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
}

.jeton-balance {
    background-color: var(--bg-dark);
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.jeton-balance i {
    color: var(--warning);
    margin-right: 8px;
}

/* --- 5. BELİRGİN BUTON STİLLERİ --- */
.action-button {
    background-color: var(--accent-indigo);
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--accent-indigo);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px -5px var(--accent-glow);
    white-space: nowrap;
}

.action-button:hover {
    transform: translateY(-3px);
    background-color: #ba5100;
    box-shadow: 0 8px 25px -5px var(--accent-glow);
}

.action-button.secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
}

.action-button.secondary:hover {
    background-color: var(--bg-panel);
    border-color: var(--text-secondary);
}

/* --- 6. MOBİL MENÜ STİLLERİ --- */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    justify-self: end;
    padding-right: 20px;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    gap: 60px;
}

.mobile-menu-container.is-active {
    transform: translateX(0);
}

.mobile-menu-header {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.mobile-menu-close {
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.mobile-menu-links a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
    width: 100%;
    max-width: 300px;
}

.mobile-menu-actions .action-button {
    width: 100%;
    text-align: center;
    padding: 16px;
}

/* --- 7. ORTAK İÇERİK BÖLÜMLERİ --- */
.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
}

/* --- 8. GİRİŞ & KAYIT SAYFALARI (DÜZELTME BURADA!) --- */
.auth-section {
    flex-grow: 1;
    /* Bu satır, auth-section'ın content-area'yı tamamen doldurmasını sağlar */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    /* Kenar boşlukları ayarlandı */
}

.auth-form {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.auth-form h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-form p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    cursor: pointer;
}

.auth-form .form-link {
    color: var(--accent-indigo);
    text-decoration: none;
}

.auth-form .form-link:hover {
    text-decoration: underline;
}

/* --- 9. FOOTER --- */
footer {
    padding: 80px 0;
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
}

.footer-about h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-about p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-col h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-indigo);
}

.footer-bottom {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 10. GENEL RESPONSIVE AYARLARI --- */
@media (max-width: 1024px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-content {
        grid-template-columns: 1fr auto;
        padding: 10px;
    }

    .header-logo {
        padding-left: 12px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 12px 0;
    }

    .section-title h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .auth-form {
        padding: 30px;
    }
}