/* Summary.Audio - Modern Styling */

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Primary gradient colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;

    /* Gradient definitions */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #faf5ff 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);

    /* Neutral colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.logo-icon-small {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-dot {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.938rem;
    transition: color 0.2s;
}

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

.nav-logout {
    color: var(--gray-500) !important;
}

.btn-nav {
    background: var(--gray-900) !important;
    color: white !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
}

.btn-nav:hover {
    background: var(--gray-800) !important;
}

/* Main content */
main {
    flex: 1;
}

main.container {
    padding: 2rem 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

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

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

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

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    color: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

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

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

.hero-cta {
    margin-bottom: 4rem;
}

.hero-cta-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* Section Styles */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Value Section */
.value-section {
    padding: 6rem 0;
    background: white;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.value-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* How Section */
.how-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    max-width: 250px;
}

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

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gray-300);
    margin-top: 32px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.step-content p {
    font-size: 0.938rem;
    color: var(--gray-600);
}

/* Use Case Section */
.usecase-section {
    padding: 6rem 0;
    background: white;
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.usecase-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.usecase-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.usecase-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.usecase-card p {
    font-size: 0.938rem;
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.cta-box {
    text-align: center;
    background: var(--gradient-primary);
    padding: 4rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-box > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-box .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.cta-box .btn-primary:hover {
    background: var(--gray-100);
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.check-icon {
    color: rgba(255, 255, 255, 0.9);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* Auth pages */
.auth-container {
    max-width: 440px;
    margin: 3rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-container h1 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.auth-container > p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.auth-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.auth-note a {
    color: var(--primary);
    font-weight: 500;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.podcasts-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.podcasts-table th,
.podcasts-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.podcasts-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.podcasts-table tr:hover td {
    background: var(--gray-50);
}

.podcast-title {
    font-weight: 500;
    color: var(--primary);
}

.status {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-complete {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-state h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    display: inline-block;
}

/* Podcast detail */
.podcast-detail {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.podcast-header {
    margin-bottom: 2rem;
}

.podcast-header h1 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.series-name {
    color: var(--primary);
    font-weight: 500;
}

.podcast-meta {
    color: var(--gray-500);
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.938rem;
}

.overcast-link {
    color: var(--primary);
}

.summary-section,
.takeaways-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.summary-section h2,
.takeaways-section h2 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-size: 1.25rem;
}

.summary-text {
    line-height: 1.8;
    color: var(--gray-700);
}

.takeaways-list {
    list-style: none;
    counter-reset: takeaway;
}

.takeaway {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-100);
    counter-increment: takeaway;
}

.takeaway:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.takeaway::before {
    content: counter(takeaway);
    background: var(--gradient-primary);
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.timestamp {
    font-family: 'SF Mono', Monaco, monospace;
    color: var(--primary);
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
}

.no-summary {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

/* Settings */
.settings-container {
    max-width: 500px;
}

.settings-container h1 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.settings-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.account-info {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.account-info h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 2rem 0;
}

/* Error page */
.error-container {
    text-align: center;
    padding: 5rem 2rem;
}

.error-message {
    color: var(--gray-500);
    margin: 1rem 0 2rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.938rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        width: 2px;
        height: 30px;
        margin: 0 auto;
    }

    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.btn-nav) {
        font-size: 0.875rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-note {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .podcasts-table {
        font-size: 0.875rem;
    }

    .podcasts-table th,
    .podcasts-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

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

    .container {
        padding: 0 16px;
    }
}
