@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f0f2f5;
    --text-color: #333;
    --light-text-color: #fff;
    --nav-background: #ffffff;
    --nav-icon-color: #a0a0a0;
    --nav-icon-active-color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    /* overflow: hidden; Artık genel olarak uygulanmıyor */
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Sadece uygulama iskeletine sahip body'ler için kaydırmayı engelle */
body.app-layout-body {
    overflow: hidden;
}

/* --- Splash Screen --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}

#splash-screen.hidden {
    display: none;
}

.splash-logo {
    text-align: center;
    color: var(--light-text-color);
}

.splash-logo img {
    width: 80%;
    max-width: 280px;
    height: auto;
}

/* --- App Wrapper --- */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

#app:not(.hidden) {
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* --- Header --- */
header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: 20px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

/* --- Main Content --- */
main {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* Bottom nav yüksekliği kadar */
}

.container {
    padding: 20px;
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--nav-background);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.08);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--nav-icon-color);
    font-size: 0.75em;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.nav-item:hover {
    color: var(--nav-icon-active-color);
}

.nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke: currentColor;
    fill: none;
}

.nav-item.active {
    color: var(--nav-icon-active-color);
    font-weight: 600;
}

.nav-item.active svg {
    stroke: var(--nav-icon-active-color);
}

/* Butonlar için ek stil */
.auth-btn {
    cursor: pointer;
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.intro-logo {
    max-width: 280px;
    margin: 0 auto 20px auto;
}

.intro-logo img {
    width: 100%;
    height: auto;
}

.app-logo {
    width: 120px;
} 