/* Pastor Dave - askpastordave.org */
/* ===================================
   Pastor Dave Website Styles
   =================================== */

/* CSS Variables for Easy Theming */
:root {
    /* Colors - Warm, spiritual, professional */
    --primary-color: #2c5f7f;      /* Deep blue - trust, stability */
    --primary-dark: #1a3a4d;
    --primary-light: #4a7fa3;
    --secondary-color: #d4a574;     /* Warm gold - light, hope */
    --secondary-light: #e8c9a0;
    --accent-color: #8b4513;        /* Earthy brown - grounded */

    --text-dark: #2d2d2d;
    --text-medium: #555555;
    --text-light: #777777;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-cream: #faf8f5;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --border-light: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;

    /* Border Radius */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 12px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style-position: inside;
}

/* ===================================
   Layout Components
   =================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

.hidden {
    display: none !important;
}

/* ===================================
   Header
   =================================== */

.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-light);
}

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

.logo h1 {
    font-size: 1.75rem;
    margin-bottom: 0;
    color: var(--bg-white);
}

.tagline {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--bg-white);
    font-weight: 400;
    transition: opacity var(--transition-fast);
}

.nav a:hover {
    opacity: 0.8;
    color: var(--secondary-light);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--bg-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-medium);
    font-weight: 600;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-mode {
    background-color: var(--primary-color);
    color: var(--bg-white);
    width: 100%;
    margin-top: 1rem;
}

.btn-mode:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

/* ===================================
   About Section
   =================================== */

.about {
    background-color: var(--bg-white);
}

.about h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text > p {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-medium);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-large);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
    background-color: var(--bg-cream);
}

.how-it-works h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mode {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-large);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.mode h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mode p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.mode strong {
    color: var(--primary-color);
}

.mode ul {
    margin-left: 1.5rem;
    color: var(--text-medium);
}

.mode ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
    list-style-position: outside;
}

/* ===================================
   Interaction Section
   =================================== */

.interact {
    background-color: var(--bg-white);
}

.interact h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
}

/* Direct Integration Layout */
.interaction-modes-direct {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.interaction-card-direct {
    background-color: var(--bg-white);
    padding: 0;
    border-radius: var(--radius-large);
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 2px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.interaction-card-direct:hover {
    box-shadow: 0 8px 30px var(--shadow-medium);
    border-color: var(--primary-light);
}

.card-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    border-bottom: 2px solid var(--border-light);
    text-align: center;
}

.interaction-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.card-header p {
    color: var(--text-medium);
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* ElevenLabs Embed Styling */
.elevenlabs-embed {
    padding: 2rem;
    background-color: var(--bg-white);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elevenlabs-embed elevenlabs-convai {
    width: 100%;
    max-width: 100%;
}

/* Phone Display Styling */
.phone-display {
    padding: 3rem 2rem;
    background-color: var(--bg-white);
    text-align: center;
}

.phone-number-large {
    margin: 2rem 0;
}

.phone-number-large a {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
    padding: 1rem 2rem;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-large);
    background-color: var(--bg-light);
}

.phone-number-large a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.phone-availability {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.phone-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.5rem;
}

/* Widget Container */
.widget-container {
    max-width: 800px;
    margin: 3rem auto;
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: 0 8px 30px var(--shadow-medium);
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--bg-white);
}

.close-widget {
    background: transparent;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: opacity var(--transition-fast);
}

.close-widget:hover {
    opacity: 0.7;
}

#elevenlabs-widget {
    min-height: 500px;
    padding: 2rem;
    background-color: var(--bg-white);
}

/* Phone Info Display */
.phone-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    z-index: 2000;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.phone-content {
    position: relative;
}

.phone-content .close-widget {
    position: absolute;
    top: -2rem;
    right: -2rem;
    color: var(--text-dark);
    font-size: 2rem;
}

.phone-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.phone-number {
    margin: 2rem 0;
}

.phone-number a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.phone-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===================================
   Theology Section
   =================================== */

.theology {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
}

.theology h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.theology .section-intro {
    margin-bottom: 3rem;
}

.theology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.theology-item {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-large);
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.theology-item h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.theology-item p {
    color: var(--text-medium);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===================================
   FAQ Section
   =================================== */

.faq {
    background-color: var(--bg-white);
}

.faq h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-medium);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: var(--bg-light);
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
    font-family: var(--font-heading);
}

.faq-question:hover {
    background-color: var(--bg-cream);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
    background-color: var(--bg-white);
}

.faq-answer p {
    padding: 1.5rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--bg-white);
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary-light);
}

.disclaimer {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--secondary-light);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

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

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

    .interaction-modes-direct {
        gap: 2rem;
    }

    .card-header {
        padding: 1.5rem 1.5rem;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .elevenlabs-embed {
        padding: 1.5rem;
        min-height: 350px;
    }

    .phone-display {
        padding: 2rem 1.5rem;
    }

    .phone-number-large a {
        font-size: 1.75rem;
        padding: 0.75rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

/* ===================================
   Accessibility
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Church leaders CTA button */
.btn-church-cta {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 32px;
    border-radius: var(--radius-medium);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background var(--transition-medium);
}
.btn-church-cta:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.faq-question:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===================================
   PWA Install Banner
   =================================== */

.install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-large);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 500px;
    width: 90%;
    transition: transform 0.5s ease;
}

.install-banner.show {
    transform: translateX(-50%) translateY(0);
}

.install-banner-content {
    flex: 1;
}

.install-banner h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: var(--bg-white);
}

.install-banner p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.install-banner-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.install-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-medium);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
}

.install-btn:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

.dismiss-btn {
    background: transparent;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.dismiss-btn:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .install-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .install-banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .install-btn {
        flex: 1;
    }
}

/**
 * Pastor Dave WebSocket Interface Styles
 * Custom styling for voice and text conversation interfaces
 */

/* ===================================
   Tab Navigation
   =================================== */

.interaction-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: var(--bg-light);
    color: var(--text-medium);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-large);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-family: var(--font-body);
}

.tab-button:hover {
    background-color: var(--bg-cream);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

/* ===================================
   Voice Interface
   =================================== */

.voice-interface {
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 2px solid var(--border-light);
    overflow: hidden;
}

.voice-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    border-bottom: 2px solid var(--border-light);
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-light);
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.status-connecting {
    background-color: #f0ad4e;
}

.status-indicator.status-connected {
    background-color: #5cb85c;
}

.status-indicator.status-speaking {
    background-color: #5bc0de;
}

.status-indicator.status-error {
    background-color: #d9534f;
}

.status-indicator.status-disconnected {
    background-color: var(--text-light);
}

.status-text {
    font-weight: 600;
    color: var(--text-dark);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.voice-visualizer {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: var(--bg-white);
}

.visualizer-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 100px;
    margin-bottom: 2rem;
}

.visualizer-bar {
    width: 6px;
    height: 10%;
    background: linear-gradient(to top, var(--primary-color), var(--primary-light));
    border-radius: 3px;
    transition: height 0.1s ease;
}

.voice-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.voice-controls {
    padding: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.voice-start-btn,
.voice-stop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.voice-stop-btn {
    background-color: #dc3545;
    color: var(--bg-white);
    border: 2px solid #dc3545;
    font-weight: 700;
}

.voice-stop-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.text-stop-btn {
    background-color: #dc3545;
    color: var(--bg-white);
    border: 2px solid #dc3545;
    font-weight: 700;
}

.text-stop-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-icon {
    font-size: 1.25rem;
}

.voice-transcript-container {
    padding: 2rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.voice-transcript-container h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.voice-transcript {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-light);
}

.transcript-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-small);
    line-height: 1.5;
}

.transcript-message:last-child {
    margin-bottom: 0;
}

.transcript-user {
    background-color: var(--secondary-light);
    text-align: right;
}

.transcript-agent {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
}

.transcript-message strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.voice-info {
    padding: 1.5rem 2rem;
    background-color: var(--bg-cream);
    text-align: center;
}

.voice-info p {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.voice-info p:last-child {
    margin-bottom: 0;
}

.voice-note {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-light);
}

/* ===================================
   Text Interface
   =================================== */

.text-interface {
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 2px solid var(--border-light);
    overflow: hidden;
}

.text-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.text-controls-header {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.chat-container {
    background-color: var(--bg-white);
}

.chat-messages {
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 2rem;
    background-color: var(--bg-light);
}

.welcome-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-medium);
}

.welcome-message strong {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.message-user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-user .message-avatar {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-user .message-content {
    text-align: right;
}

.message-sender {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.message-text {
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.message-user .message-text {
    background-color: var(--secondary-light);
    border-color: var(--secondary-color);
}

.chat-input-container {
    padding: 1.5rem 2rem;
    background-color: var(--bg-white);
    border-top: 2px solid var(--border-light);
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-medium);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    min-height: 60px;
    max-height: 150px;
    transition: border-color var(--transition-fast);
}

.message-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-btn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.text-info {
    padding: 1.5rem 2rem;
    background-color: var(--bg-cream);
    text-align: center;
}

.text-info p {
    margin-bottom: 0;
    color: var(--text-medium);
}

/* ===================================
   Phone Call Interface
   =================================== */

.phone-call-interface {
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 2px solid var(--border-light);
    padding: 4rem 2rem;
    text-align: center;
}

.phone-icon-large {
    font-size: 6rem;
    margin-bottom: 2rem;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
}

.phone-call-interface h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.phone-call-interface > p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.phone-number-display {
    margin: 2.5rem 0;
}

.phone-number-btn {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 1.5rem 3rem;
    border-radius: var(--radius-large);
    text-decoration: none;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(44, 95, 127, 0.3);
    font-family: var(--font-heading);
}

.phone-number-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(44, 95, 127, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.phone-availability {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.phone-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .interaction-tabs {
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .voice-header,
    .text-header {
        padding: 1rem 1.5rem;
    }

    .voice-visualizer {
        padding: 2rem 1rem;
        min-height: 250px;
    }

    .visualizer-bars {
        height: 80px;
    }

    .voice-icon {
        font-size: 3rem;
    }

    .voice-controls {
        padding: 1.5rem;
        flex-direction: column;
    }

    .voice-start-btn,
    .voice-stop-btn {
        width: 100%;
        justify-content: center;
    }

    .voice-transcript {
        max-height: 200px;
    }

    .text-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .text-controls-header {
        width: 100%;
        justify-content: flex-end;
    }

    .chat-messages {
        min-height: 300px;
        max-height: 400px;
        padding: 1.5rem;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-input-container {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .send-btn {
        width: 100%;
        justify-content: center;
    }

    .phone-call-interface {
        padding: 3rem 1.5rem;
    }

    .phone-icon-large {
        font-size: 4rem;
    }

    .phone-call-interface h3 {
        font-size: 1.5rem;
    }

    .phone-number-btn {
        font-size: 1.75rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .voice-visualizer {
        min-height: 200px;
    }

    .visualizer-bars {
        gap: 2px;
    }

    .visualizer-bar {
        width: 4px;
    }

    .chat-messages {
        min-height: 250px;
        max-height: 350px;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .phone-number-btn {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ===================================
   Scrollbar Styling
   =================================== */

.voice-transcript::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.voice-transcript::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.voice-transcript::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

.voice-transcript::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-medium);
}
