/* === TEMEL STİLLER === */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --secondary: #f72585;
    --accent: #4cc9f0;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --surface: #334155;
    --text: #f8fafc;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-light));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--dark);
    position: relative;
}

/* === GİRİŞ EKRANI === */
.auth-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.auth-screen.active {
    display: flex;
}

.auth-container {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: slideUp 0.6s ease-out;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    margin-bottom: 40px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(67, 97, 238, 0.6);
    }
}

.auth-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 span {
    color: var(--secondary);
}

.tagline {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 5px;
}

.auth-form {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.btn-auth {
    width: 100%;
    padding: 18px;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.5);
}

.btn-auth:active {
    transform: translateY(-1px);
}

.quick-login {
    margin-bottom: 30px;
}

.quick-login p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 14px;
}

.quick-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.quick-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: rgba(67, 97, 238, 0.2);
    border-color: var(--primary);
    color: var(--primary-light);
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.feature i {
    color: var(--success);
    font-size: 16px;
}

/* === ANA EKRAN === */
.main-screen {
    min-height: 100vh;
    padding-bottom: 80px;
}

.app-header {
    background: var(--dark-light);
    padding: 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.user-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.level-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-badge {
    background: var(--gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

.xp-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.xp-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.xp-count {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
}

.stats-grid {
    display: flex;
    gap: 15px;
}

.stat {
    text-align: center;
    min-width: 70px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === NAVİGASYON === */
.main-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: var(--dark-light);
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-item i {
    font-size: 22px;
    transition: all 0.3s;
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.nav-item.active i {
    transform: translateY(-5px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* === İÇERİK ALANI === */
.content-area {
    padding: 0 20px 20px;
}

/* === SAYFALAR === */
.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HOME PAGE === */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-card {
    background: var(--gradient-dark);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.welcome-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text);
}

.welcome-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.status-badges {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.status-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge.watching i { color: var(--primary); }
.status-badge.watched i { color: var(--success); }
.status-badge.will-watch i { color: var(--warning); }
.status-badge.dropped i { color: var(--danger); }

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.content-card {
    background: var(--dark-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.content-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--surface);
}

.content-info {
    padding: 15px;
}

.content-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.content-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--warning);
    font-weight: 600;
}

.status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 2;
}

.status-indicator.watching { background: var(--primary); }
.status-indicator.watched { background: var(--success); }
.status-indicator.will-watch { background: var(--warning); }
.status-indicator.dropped { background: var(--danger); }

/* === KEŞFET SAYFASI === */
.search-box {
    position: relative;
    margin-bottom: 25px;
}

.search-box input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: var(--dark-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 16px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 25px;
}

.category-btn {
    padding: 12px 24px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-light);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.trending-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.trending-slider::-webkit-scrollbar {
    display: none;
}

.trending-card {
    min-width: 280px;
    background: var(--dark-light);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.trending-backdrop {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.trending-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--dark-light), transparent);
}

.trending-info {
    padding: 15px;
}

/* === LİSTEM SAYFASI === */
.list-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.list-filter {
    flex: 1;
    padding: 12px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.list-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.empty-list {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-list i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* === PROFİL SAYFASI === */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    margin: 0 auto 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.profile-stat {
    background: var(--dark-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-backdrop {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--dark-light), transparent 50%);
}

.modal-body {
    padding: 25px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-item i {
    color: var(--primary-light);
}

.modal-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

.status-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.status-action {
    padding: 15px;
    background: var(--dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.status-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.status-action.active {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.status-action.watching i { color: var(--primary); }
.status-action.watched i { color: var(--success); }
.status-action.will-watch i { color: var(--warning); }
.status-action.dropped i { color: var(--danger); }

/* === TOAST === */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: var(--dark-light);
    color: var(--text);
    padding: 18px 25px;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--accent); }

.toast i {
    font-size: 20px;
}

.toast.success i { color: var(--success); }
.toast.warning i { color: var(--warning); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--accent); }

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* === LOADING === */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .auth-container {
        padding: 40px 25px;
    }
    
    .auth-header h1 {
        font-size: 36px;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .content-poster {
        height: 180px;
    }
    
    .trending-card {
        min-width: 250px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
}