/* Voice Demo Pro Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-top: 50px; /* Account for fixed banner */
}

/* Background matching landing page */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DC 25%, #E8F4F8 50%, #F0F9FF 75%, #FFF0E8 100%);
}

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

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(100px, -100px); }
    50% { transform: translate(200px, 50px); }
    75% { transform: translate(-50px, 100px); }
}

.particle-1 { width: 6px; height: 6px; background: #2563EB; top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { width: 8px; height: 8px; background: #FF6B6B; top: 60%; left: 80%; animation-delay: 5s; }
.particle-3 { width: 10px; height: 10px; background: #14B8A6; top: 40%; left: 50%; animation-delay: 10s; }
.particle-4 { width: 7px; height: 7px; background: #F59E0B; top: 80%; left: 30%; animation-delay: 15s; }
.particle-5 { width: 5px; height: 5px; background: #60A5FA; top: 10%; left: 70%; animation-delay: 7s; }

/* Demo Banner */
.demo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-align: center;
    z-index: 1000;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demo-banner a {
    color: #93C5FD;
    text-decoration: none;
    font-weight: 600;
}

.demo-banner a:hover {
    color: #BFDBFE;
    text-decoration: underline;
}

/* Main Container */
.page-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1105px;
    flex: 1;
}

.main-container {
    display: flex;
    gap: 1.5rem;
    max-width: 1105px;
    width: 100%;
    position: relative;
    z-index: 1;
    align-items: stretch;
    justify-content: center;
}

.voice-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 350px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 260px;
    flex-shrink: 0;
}

.metrics-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 260px;
    flex-shrink: 0;
}

/* Header */
.header { text-align: center; margin-bottom: 2rem; }

.logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header h1 {
    font-size: 1.75rem;
    color: #1F2937;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.header p { color: #6B7280; font-size: 0.95rem; }

/* Voice Interface */
.voice-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.orb-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.orb-rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.orb-ring {
    position: absolute;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    animation: ripple 3s infinite;
}

.orb-ring:nth-child(1) { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
.orb-ring:nth-child(2) { width: 160px; height: 160px; margin: -80px 0 0 -80px; animation-delay: 1s; }
.orb-ring:nth-child(3) { width: 120px; height: 120px; margin: -60px 0 0 -60px; animation-delay: 2s; }

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.voice-orb {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.voice-orb.idle { animation: breathe 4s infinite ease-in-out; }
.voice-orb.listening {
    background: linear-gradient(135deg, #10B981, #2563EB);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.5);
    animation: pulse 1.5s infinite;
}
.voice-orb.speaking {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.5);
    animation: wave 0.6s infinite;
}
.voice-orb.connecting { animation: spin 2s linear infinite; opacity: 0.7; }

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes wave { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Controls */
.controls { display: flex; gap: 1rem; justify-content: center; }

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary { background: #10B981; color: white; }
.btn-primary:hover:not(:disabled) { background: #059669; }
.btn-danger { background: #EF4444; color: white; }
.btn-danger:hover:not(:disabled) { background: #DC2626; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.connecting { background: #FEF3C7; color: #92400E; }
.status-badge.connected { background: #D1FAE5; color: #065F46; }
.status-badge.error { background: #FEE2E2; color: #991B1B; }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 1.5s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Metrics Panel Styles */
.metrics-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 1rem;
}

.session-id {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563EB;
    letter-spacing: 0.1em;
}

.persona-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.metric-row:last-child { border-bottom: none; }

.metric-label { font-size: 0.875rem; color: #6B7280; }
.metric-value { font-size: 1.25rem; font-weight: 700; }
.metric-value.user { color: #10B981; }
.metric-value.bot { color: #7C3AED; }
.metric-value.total { color: #2563EB; font-size: 1.5rem; }

.usage-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #E5E7EB; }

.usage-bar-container {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.usage-bar {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #2563EB);
    transition: width 0.3s;
}

.usage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6B7280;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal h2 { margin-bottom: 0.5rem; color: #1F2937; }
.modal p { color: #6B7280; margin-bottom: 1.5rem; font-size: 0.95rem; }

.session-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Special styling for session ID input only */
.session-id-input {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
}

.session-input:focus {
    outline: none;
    border-color: #2563EB;
}

.error-text {
    color: #EF4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

.modal .btn { width: 100%; }

/* Footer */
.footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.8rem;
}

.footer a { color: #2563EB; text-decoration: none; }

/* Contact Form */
.contact-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.contact-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-input:focus {
    outline: none;
    border-color: #2563EB;
}

.contact-input::placeholder {
    color: #9CA3AF;
}

.contact-btn {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.contact-btn:hover {
    opacity: 0.9;
}

.contact-btn:active {
    transform: scale(0.98);
}

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

.contact-success {
    color: #10B981;
    font-size: 0.8rem;
    text-align: center;
    display: none;
}

/* Engagement Card */
.engagement-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.engagement-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

/* Engagement Buttons */
.engagement-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.engagement-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    width: 100%;
    max-width: 120px;
}

.engagement-btn .emoji {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.engagement-btn:hover .emoji {
    animation: emojiWiggle 0.5s ease;
}

.engagement-btn.clicked .emoji {
    animation: emojiBounce 0.6s ease;
}

@keyframes emojiWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes emojiBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.4) rotate(-10deg); }
    50% { transform: scale(0.9) rotate(5deg); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.heart-btn {
    background: #FEE2E2;
    color: #DC2626;
    border-color: #FECACA;
}

.heart-btn:hover {
    background: #FCA5A5;
    transform: scale(1.05);
}

.heart-btn.liked {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.like-btn {
    background: #DBEAFE;
    color: #2563EB;
    border-color: #BFDBFE;
}

.like-btn:hover {
    background: #93C5FD;
    transform: scale(1.05);
}

.like-btn.clicked {
    background: #2563EB;
    color: white;
}

.love-btn {
    background: #FCE7F3;
    color: #DB2777;
    border-color: #FBCFE8;
}

.love-btn:hover {
    background: #F9A8D4;
    transform: scale(1.05);
}

.love-btn.loved, .love-btn.clicked {
    background: #DB2777;
    color: white;
    border-color: #DB2777;
}

.share-btn {
    background: #DBEAFE;
    color: #2563EB;
    border-color: #BFDBFE;
}

.share-btn:hover {
    background: #93C5FD;
    transform: scale(1.05);
}

.count {
    font-weight: 600;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.25rem;
}

/* Rating Thank You Message */
.rating-thank-you {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border: 1px solid #34D399;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
    animation: thankYouSlide 0.4s ease;
}

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

.rating-thank-you .emoji {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-thank-you .message {
    font-size: 0.9rem;
    color: #065F46;
    font-weight: 500;
}

/* Star Rating Modal */
.rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.rating-modal.hidden {
    display: none;
}

.rating-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

.rating-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.rating-subtitle {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.star {
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
    filter: grayscale(100%);
}

.star:hover {
    transform: scale(1.2);
}

.star.active {
    filter: grayscale(0%);
    animation: starPop 0.2s ease;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.rating-feedback {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: none;
    margin-bottom: 1rem;
}

.rating-feedback:focus {
    outline: none;
    border-color: #2563EB;
}

.rating-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.rating-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-btn-primary {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: white;
    border: none;
}

.rating-btn-primary:hover {
    opacity: 0.9;
}

.rating-btn-secondary {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.rating-btn-secondary:hover {
    background: #E5E7EB;
}

/* Fun Facts during connection */
#statusContainer {
    width: 100%;
    align-self: stretch;
}

.fun-fact-container {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    border-radius: 12px;
    border-left: 4px solid #2563EB;
    width: 100%;
    max-width: none;
    min-height: 70px;
    text-align: left;
    animation: fadeIn 0.5s ease;
}

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

.fun-fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563EB;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fun-fact-text {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1000px) {
    .main-container { flex-direction: column; align-items: center; gap: 1rem; }
    .metrics-panel { width: 100%; max-width: 400px; }
    .voice-card { min-width: auto; width: 100%; max-width: 500px; }
}

/* Business Info Banner */
.business-info-banner {
    position: relative;
    z-index: 10;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.info-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1E40AF;
}

.info-separator {
    color: #D1D5DB;
    margin: 0 0.25rem;
}

.info-subtitle {
    font-size: 0.85rem;
    color: #4B5563;
}

.info-subtitle strong {
    color: #2563EB;
}

.banner-features {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #374151;
    white-space: nowrap;
}

.feature-item .check {
    color: #2563EB;
    font-weight: 600;
}

.banner-cta {
    display: inline-block;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
}

.banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
}

@media (max-width: 900px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    .banner-header {
        justify-content: center;
    }
    .banner-features {
        justify-content: center;
    }
}

/* Footer Note */
.footer-note {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: #9CA3AF;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-note p {
    margin: 0;
}
