/**
 * Mutfak Dolabı Görselleştirme - Özel CSS
 * Modern ve responsive tasarım
 */

 :root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1f2937;
    --light: #f9fafb;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: var(--gradient-primary) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--gradient-primary);
    border: none;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 2rem;
}

/* Style Cards */
.style-card {
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.style-card:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.style-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    box-shadow: var(--shadow-lg);
}

.style-card i {
    transition: all 0.3s ease;
}

.style-card:hover i,
.style-card.active i {
    transform: scale(1.1) rotate(5deg);
}

/* Color Options */
.color-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    position: relative;
}

.color-option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px currentColor;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.color-option.active {
    border-color: #333;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px white, 0 0 0 6px var(--primary);
}

.color-option.active::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Upload Area */
.upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #fafbff 0%, #fff 100%);
}

.upload-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    transform: scale(1.02);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-style: solid;
}

.upload-area i {
    transition: all 0.3s ease;
}

.upload-area:hover i {
    transform: translateY(-5px) scale(1.1);
    color: var(--primary) !important;
}

/* Image Preview */
#imagePreview img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}

/* Result Card */
.result-card {
    background: var(--gradient-success);
    color: white;
    border-radius: 16px;
    animation: slideDown 0.5s ease;
}

.result-card.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem;
    animation: slideDown 0.5s ease;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box-step {
    display: flex;
    align-items-start;
    margin-bottom: 1.5rem;
}

.info-box-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.hover-primary {
    transition: all 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading Animation */
.spinner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .color-option {
        width: 50px;
        height: 50px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Code Preview */
pre {
    background: #1f2937;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

pre code {
    color: #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Utility Classes */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improve readability of hero highlighted text, lighten left side */
.hero-section .text-gradient {
    /* 60% açık → 40% koyu geçiş */
    background: linear-gradient(90deg,
        #ffffff 0%,
        #f7f9ff 20%,
        #eef1ff 40%,
        #dfe5ff 60%, /* açık tonların sonu */
        #9aa8ff 75%,
        #6e83f0 90%,
        #5b6adf 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shadow on hero title for contrast */
.hero-section h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.shadow-custom {
    box-shadow: var(--shadow-xl);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Scroll-to-top button centering and slight left shift for icon */
#scrollTopBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#scrollTopBtn i {
    line-height: 1;
    transform: translateX(-1px);
}