/* STT.ai - Modern Speech-to-Text SaaS Styles */

:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --secondary: #7C3AED;
    --secondary-light: #8B5CF6;
    --dark-bg: #0F172A;
    --dark-surface: #1E293B;
    --dark-border: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --transition: 150ms ease;
}

/* General */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #1E293B;
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Dropdown menu scrollable */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* Alerts */
.alert ul {
    margin: 0;
    padding-left: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1055 50%, var(--dark-bg) 100%);
    color: var(--text-primary);
    text-align: center;
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

.upload-zone.drag-over {
    border-style: solid;
    background: rgba(79, 70, 229, 0.08);
}

.upload-zone .upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.upload-zone .upload-text {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.upload-zone .upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Model Card */
.model-card {
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: #fff;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.model-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.model-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.model-card .model-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.model-card .model-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Transcript Segment */
.transcript-segment {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.transcript-segment:nth-child(even) {
    background: #F8FAFC;
}

.transcript-segment:hover {
    background: rgba(79, 70, 229, 0.04);
}

.transcript-segment .speaker-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.transcript-segment .timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.transcript-segment .timestamp:hover {
    color: var(--primary);
    text-decoration: underline;
}

.transcript-segment .segment-text {
    margin-top: 0.25rem;
    line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.stats-bar .stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #F1F5F9;
    color: #475569;
}

/* WER Badge */
.wer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.wer-badge.wer-excellent {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.wer-badge.wer-good {
    background: rgba(6, 182, 212, 0.1);
    color: #0891B2;
}

.wer-badge.wer-fair {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.wer-badge.wer-poor {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

/* Share Bar */
.share-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.share-bar .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: var(--text-muted);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.share-bar .share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

/* Price Card */
.price-card {
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: #fff;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    position: relative;
}

.price-card.recommended::before {
    content: 'Most Popular';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
}

.price-card .price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-bg);
    letter-spacing: -0.03em;
}

.price-card .price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Recording Button (Voice Lab) */
.recording-btn {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--danger);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
}

.recording-btn:hover {
    background: #DC2626;
    transform: scale(1.05);
}

.recording-btn.recording {
    animation: pulse-record 1.5s ease-in-out infinite;
}

@keyframes pulse-record {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Payment form */
#card-element {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stats-bar {
        justify-content: center;
    }

    .share-bar {
        justify-content: center;
    }

    .price-card {
        margin-bottom: 1rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }

    .recording-btn {
        width: 4rem;
        height: 4rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .model-card {
        padding: 1rem;
    }
}
