/* ========================================
   RoLeaf Logo Generator - Styles
   Modern, organic design matching RoLeaf brand
======================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Forest Green */
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;
    
    /* Accent */
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    
    /* Neutrals */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Semantic */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    
    /* Spacing */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(34, 197, 94, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background: linear-gradient(180deg, var(--primary-50) 0%, #fff 50%, var(--gray-50) 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-200);
}

.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
    color: var(--primary-700);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

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

/* ========================================
   HEADER
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 28px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

/* ========================================
   HERO
======================================== */
.hero {
    position: relative;
    padding: 140px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-100);
    color: var(--primary-700);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
    bottom: 0;
    left: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-400) 0%, transparent 70%);
    top: 30%;
    left: -50px;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
    padding: 0 0 80px;
    position: relative;
}

.generator-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   FORM SECTION
======================================== */
.form-section {
    position: relative;
}

.form-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.step {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-500);
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.step.active {
    background: var(--primary-500);
    color: white;
}

.step.completed {
    background: var(--primary-100);
    color: var(--primary-600);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
}

.form-title {
    font-size: 1.5rem;
    color: var(--gray-900);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--primary-500);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: white;
    border-color: var(--primary-300);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.input-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.style-option {
    cursor: pointer;
}

.style-option input {
    display: none;
}

.style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.style-option input:checked + .style-card {
    background: var(--primary-50);
    border-color: var(--primary-500);
}

.style-card:hover {
    border-color: var(--primary-200);
}

.style-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gray-200);
}

.style-icon-modern { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.style-icon-corporate { background: linear-gradient(135deg, #1f2937 0%, #374151 100%); }
.style-icon-playful { background: linear-gradient(135deg, #f472b6 0%, #fb923c 100%); }
.style-icon-vintage { background: linear-gradient(135deg, #92400e 0%, #78350f 100%); }
.style-icon-elegant { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); }
.style-icon-geometric { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.style-icon-organic { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }
.style-icon-tech { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

.style-name {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.color-option {
    cursor: pointer;
    text-align: center;
}

.color-option input {
    display: none;
}

.color-swatch {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.375rem;
    border-radius: var(--radius-lg);
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: white;
    font-size: 1rem;
}

.color-option input:checked + .color-swatch {
    border-color: var(--gray-900);
    transform: scale(1.1);
}

.color-swatch:hover {
    transform: scale(1.05);
}

.color-name {
    font-size: 0.6875rem;
    color: var(--gray-500);
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons .btn {
    flex: 1;
}

.btn-generate {
    font-size: 1rem;
}

/* reCAPTCHA */
.recaptcha-group {
    display: flex;
    justify-content: center;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-100);
    border-radius: var(--radius-lg);
    color: var(--primary-600);
    font-size: 1.25rem;
}

.info-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========================================
   RESULT SECTION
======================================== */
.result-section {
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.result-header {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.result-header h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-header h2 i {
    margin-right: 0.5rem;
}

.result-header p {
    opacity: 0.9;
    margin: 0;
}

.logo-preview {
    padding: 3rem;
    background: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.logo-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.result-actions {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

/* Promo Section */
.promo-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.promo-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.promo-card.promo-domain {
    background: var(--primary-50);
    border-color: var(--primary-100);
}

.promo-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-100);
    border-radius: var(--radius-lg);
    color: var(--primary-600);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.promo-domain .promo-icon {
    background: var(--primary-200);
}

.promo-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.promo-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.promo-code {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--primary-500);
    color: white;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* ========================================
   LOADING OVERLAY
======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.loading-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--primary-500);
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--primary-300);
    animation: spin 1.2s linear infinite 0.2s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--primary-200);
    animation: spin 1.2s linear infinite 0.4s;
}

.loading-spinner i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-500);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.9); }
}

.loading-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.loading-tip {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
    border-radius: 100px;
    transition: width 0.3s ease;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-800);
}

.footer-logo {
    height: 28px;
    filter: brightness(0) invert(1);
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    margin: 0;
}

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--gray-900);
    color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    opacity: 0;
    transition: all var(--transition-base);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--error);
}

.toast i {
    font-size: 1.25rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .header .container {
        height: 64px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn-secondary {
        order: 2;
    }
    
    .form-buttons .btn-primary {
        order: 1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .promo-card {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .style-grid {
        grid-template-columns: 1fr;
    }
    
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .color-swatch {
        width: 40px;
        height: 40px;
    }
    
    .step-indicator {
        transform: scale(0.9);
    }
}
