/* 
   assets/css/style.css 
   Modern, Premium Glassmorphism UI
*/

:root {
    /* Color Palette */
    --primary: #ff4d6d;
    --primary-light: #ff758f;
    --primary-dark: #c9184a;
    --bg-color: #0d0d12;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
    
    /* Variables */
    --radius: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* Base Styles */
h1, h2, h3 { font-weight: 600; }
a { color: var(--primary-light); text-decoration: none; }
button { cursor: pointer; border: none; outline: none; transition: var(--transition); font-family: inherit;}
input, select { font-family: inherit; }

/* Utilities */
.hidden { display: none !important; }
.mt-10 { margin-top: 15px; }
.w-100 { width: 100%; }
.text-primary { color: var(--primary); }

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}
.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-dark);
    top: -100px;
    left: -100px;
}
.shape-2 {
    width: 400px;
    height: 400px;
    background: #4a00e0;
    bottom: -150px;
    right: -100px;
}

/* Glass Element Base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* App Container */
#app {
    width: 100%;
    max-width: 480px; /* Mobile first bounds */
    min-height: 100vh;
    position: relative;
    background: rgba(13, 13, 18, 0.6);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow-x: hidden;
}

/* Views */
.view {
    display: none;
    height: 100vh;
    flex-direction: column;
}
.view.active {
    display: flex;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: var(--radius);
}

.btn-icon {
    background: transparent;
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 50%;
}
.btn-icon.primary-color {
    color: var(--primary);
}

/* Forms & Inputs */
input, select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}
input::placeholder { color: var(--text-muted); }
input:focus { border-color: var(--primary); outline: none; }

/* --- AUTH SCREEN --- */
.auth-container {
    margin: auto 20px;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
}
.auth-container .logo { margin-bottom: 30px; }
.auth-container .logo i { font-size: 3rem; color: var(--primary); margin-bottom: 10px;}
.auth-container .logo h1 { font-size: 2rem; letter-spacing: 2px;}
.auth-container p { color: var(--text-muted); font-size: 0.9rem;}
.switch-form { margin-top: 20px; }

/* --- MAIN APP SCREEN --- */
.glass-header {
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.user-info { font-weight: 500; font-size: 1.1rem; }

.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px; /* Space for bottom nav */
}

/* Tabs */
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.tab-header .btn-primary { width: auto; padding: 10px 15px; border-radius: 50%; }

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Wardrobe Grid */
.wardrobe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.wardrobe-item {
    background: var(--glass-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    aspect-ratio: 3/4;
}
.wardrobe-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wardrobe-item .info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 10px;
    font-size: 0.8rem;
}

/* Stylist Chat & Mannequin */
.stylist-chat { margin-bottom: 20px; }
.ai-bubble {
    background: rgba(255, 77, 109, 0.2);
    border-left: 3px solid var(--primary);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.chat-input-wrapper {
    display: flex;
    align-items: center;
    border-radius: 24px;
    padding: 5px 15px;
}
.chat-input-wrapper input {
    margin-bottom: 0; border: none; background: transparent; padding: 10px 0;
}

.mannequin-container h3 { margin-bottom: 15px; text-align: center; }
.mannequin-stack {
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.mannequin-slot {
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.2);
}
.mannequin-slot img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.mannequin-slot::before { content: 'Boş'; color: var(--text-muted); font-size: 0.8rem; }
.mannequin-slot img { position: relative; z-index: 1; }
.mannequin-slot.filled::before { display: none; }

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    gap: 5px;
}
.nav-item.active { color: var(--primary); }
.nav-item i { font-size: 1.2rem; }

.action-btn {
    transform: translateY(-20px);
}
.add-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}
.add-circle i { font-size: 1.5rem; }

/* Modals */
.modal {
    position: fixed;
    top:0; left:0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 20px;
}
.modal-content {
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 20px;
    position: relative;
}
.btn-close {
    position: absolute;
    top: 15px; right: 15px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
}
.camera-preview {
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 16px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.placeholder { text-align: center; color: var(--text-muted); }
.placeholder i { margin-bottom: 10px; }
.camera-actions { display: flex; justify-content: center; gap: 20px; }
.camera-actions .btn-icon { background: rgba(255,255,255,0.1); width: 50px; height: 50px; }
#video-stream, #image-preview { width: 100%; height: 100%; object-fit: cover; }

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 999;
    border: 1px solid var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
