/**
 * VoiceFormFiller - Landing Page Styles
 * Modern glassmorphism design with split layout
 */

:root {
    --primary-pink: #FF6B9D;
    --primary-purple: #C855F6;
    --primary-blue: #5B86E5;
    --gradient-main: linear-gradient(135deg, #FF6B9D 0%, #C855F6 50%, #5B86E5 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5e;
    --text-light: #8a8a9e;
    --shadow-soft: 0 8px 32px rgba(91, 134, 229, 0.1);
    --shadow-medium: 0 12px 40px rgba(91, 134, 229, 0.15);
    --shadow-glow: 0 0 40px rgba(200, 85, 246, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #fef4f8 0%, #f0e8ff 50%, #e8f2ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 85, 246, 0.05) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 0;
}

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

/* Main container */
.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Split layout */
.landing-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    align-items: center;
}

/* Demo section (left) */
.demo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.demo-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 450px;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-input {
    position: relative;
}

.demo-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.demo-input-field {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid rgba(200, 85, 246, 0.2);
    background: white;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
}

.demo-input-field:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(200, 85, 246, 0.1);
}

.demo-input .value {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-dark);
    pointer-events: none;
    margin-top: 20px;
}

.demo-check {
    display: none;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-main);
    margin: 20px auto 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

/* Hero section (right) */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.voice-text {
    font-family: 'Leckerli One', cursive;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-medium);
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 48px;
    line-height: 1.6;
}

/* OAuth buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.oauth-btn-google {
    background: white;
    color: var(--text-dark);
    border-color: #dadce0;
    box-shadow: var(--shadow-soft);
}

.oauth-btn-google:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(91, 134, 229, 0.25);
}

.oauth-btn-github {
    background: #24292e;
    color: white;
    box-shadow: var(--shadow-soft);
}

.oauth-btn-github:hover {
    background: #1a1e22;
    box-shadow: 0 8px 24px rgba(36, 41, 46, 0.4);
}

.oauth-icon {
    width: 22px;
    height: 22px;
}

/* Trust badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
    color: var(--text-medium);
    font-weight: 500;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mic Button */
.demo-mic-btn {
    width: 100%;
    padding: 18px 24px;
    border-radius: 12px;
    border: none;
    background: var(--gradient-main);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.demo-mic-btn.recording {
    background: #EF4444;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

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

.mic-icon {
    width: 22px;
    height: 22px;
}

.mic-text {
    font-family: inherit;
}

/* Recording Loader */
.demo-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
}

.demo-loader.active {
    display: flex;
}

.demo-loader .loader-bar {
    width: 4px;
    height: 20px;
    background: #EF4444;
    border-radius: 2px;
    animation: loader-bounce 1s ease-in-out infinite;
    display: inline-block;
    margin: 0 3px;
}

.demo-loader .loader-bar:nth-child(1) {
    animation-delay: 0s;
}

.demo-loader .loader-bar:nth-child(2) {
    animation-delay: 0.15s;
}

.demo-loader .loader-bar:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loader-bounce {
    0%, 100% { height: 20px; }
    50% { height: 35px; }
}

.loader-text {
    font-size: 14px;
    color: #EF4444;
    font-weight: 600;
}

/* Transcription Box */
.demo-transcription {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(200, 85, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(200, 85, 246, 0.2);
}

.demo-transcription.active {
    display: flex;
}

.transcription-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transcription-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 1024px) {
    .landing-split {
        gap: 40px;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .demo-container {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 20px;
    }

    .landing-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .demo-section {
        order: 2;
    }

    .hero-section {
        order: 1;
        padding: 20px;
        text-align: center;
    }

    .demo-container {
        max-width: 100%;
        padding: 30px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 16px;
    }

    .demo-container {
        padding: 24px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 15px;
    }

    .oauth-btn {
        padding: 16px 24px;
        font-size: 15px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
