/* WhatsApp Mockup Styles */
.whatsapp-demo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.whatsapp-window {
    width: 95%;
    max-width: 1100px;
    height: 90%;
    background: #111b21;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    overflow: hidden;
    position: relative;
}

.whatsapp-sidebar {
    width: 70px;
    background: #202c33;
    border-right: 1px solid #2a3942;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    z-index: 2;
    margin-top: 30px;
}

.sidebar-icon {
    width: 54px;
    height: 54px;
    margin: 4px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #8696a0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 24px;
}

.sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e9edef;
}

.sidebar-icon.active {
    background: rgba(0, 168, 132, 0.15);
    color: #00a884;
}

.whatsapp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.window-controls {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.window-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.window-button:hover {
    transform: scale(1.15);
}

.window-button.close {
    background: #ff5f56;
}

.window-button.minimize {
    background: #ffbd2e;
}

.window-button.maximize {
    background: #27c93f;
}

.whatsapp-header {
    background: #202c33;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e9edef;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid #2a3942;
    min-height: 60px;
}

.whatsapp-logo {
    width: 0;
    height: 0;
    display: none;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.whatsapp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-avatar-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.whatsapp-contact-info {
    flex: 1;
}

.whatsapp-contact-name {
    font-weight: 500;
    font-size: 16px;
    color: #e9edef;
}

.whatsapp-contact-status {
    font-size: 13px;
    color: #8696a0;
}

.whatsapp-chat {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #0b141a;
}

.message {
    max-width: 65%;
    margin-bottom: 8px;
    padding: 8px 12px 12px;
    border-radius: 8px;
    font-size: 14.2px;
    line-height: 1.5;
    animation: messageSlideIn 0.3s ease-out;
    color: #e9edef;
}

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

.message-received {
    background: #202c33;
    margin-right: auto;
}

.message-sent {
    background: #005c4b;
    margin-left: auto;
}

.whatsapp-input-area {
    padding: 12px 20px;
    background: #202c33;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.whatsapp-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    background: #2a3942;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    color: #e9edef;
    resize: none;
    overflow-y: auto;
    max-height: 150px;
    min-height: 44px;
    line-height: 1.4;
}

.whatsapp-input::placeholder {
    color: #8696a0;
}

.whatsapp-input:focus {
    background: #2a3942;
}

.whatsapp-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #8696a0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.whatsapp-send-btn:hover {
    color: #00a884;
}

/* Control Key Prompt */
.control-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 10;
    border: 2px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}

.control-prompt.hidden {
    display: none;
}

.keyboard-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 1rem 0;
}

.key-visual {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 0 0 #dee2e6, 0 6px 4px 0 rgba(0, 0, 0, 0.1);
    animation: keyBounce 2s ease-in-out infinite;
}

@keyframes keyBounce {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 0 0 #dee2e6, 0 6px 4px 0 rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 8px 0 0 #dee2e6, 0 10px 8px 0 rgba(0, 0, 0, 0.1);
    }
}

.key-symbol {
    font-size: 24px;
    line-height: 1;
    color: #495057;
}

.key-text {
    font-size: 11px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.times-indicator {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Mock HUD Window */
.mock-hud {
    position: fixed;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 600px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    padding: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 30px 90px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(99, 102, 241, 0.15);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(40px) saturate(180%);
    overflow: hidden;
}

.mock-hud.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.mock-hud::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.mock-hud-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.mock-hud-tab {
    padding: 8px 18px;
    background: transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: -0.01em;
}

.mock-hud-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.mock-hud-tab.active {
    background: rgba(99, 102, 241, 0.2);
    color: white;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.mock-hud-tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.mock-hud-content {
    padding: 20px 24px 24px;
    position: relative;
    z-index: 1;
}

.mock-hud-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    color: white;
    font-size: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    outline: none;
    resize: none;
    line-height: 1.5;
    min-height: 80px;
    font-weight: 400;
}

.mock-hud-input:focus {
    background: transparent;
}

.mock-hud-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.mock-hud-hint {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mock-hud-hint kbd {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* Typing indicator */
.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 12px 16px;
    background: #202c33;
    border-radius: 8px;
    margin-bottom: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #8696a0;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.demo-instruction {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
    animation: instructionPulse 2s ease-in-out infinite;
}

@keyframes instructionPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.demo-instruction.hidden {
    display: none;
}

/* Scenario Tabs */
.scenario-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: flex-end;
    border-bottom: 2px solid var(--border-light);
    padding: 0 2rem;
}

.scenario-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    margin-bottom: -2px;
}

.scenario-tab:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-primary);
}

.scenario-tab.active {
    background: white;
    color: var(--primary);
    border: 2px solid var(--border-light);
    border-bottom: 2px solid white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.scenario-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
}

.scenario-tab svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.scenario-tab.active svg path {
    fill: var(--primary) !important;
}

.scenario-tab:hover svg {
    transform: scale(1.1);
}

/* Download Prompt Modal */
.download-prompt {
    position: fixed;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
}

.download-prompt.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.download-prompt h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-prompt p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.download-prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.download-prompt-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.download-prompt-btn.primary {
    background: var(--primary);
    color: white;
}

.download-prompt-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.download-prompt-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.download-prompt-btn.secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Response Options */
.response-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.response-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.response-option:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.response-option:active {
    transform: translateX(2px) scale(0.98);
}

.response-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

/* Try It Pointer */
.try-it-pointer {
    position: absolute;
    bottom: 50px;
    left: calc(20%);
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.try-it-pointer.hidden {
    display: none;
}

.pointer-arrow {
    color: var(--primary);
    animation: arrowBounce 2s ease-in-out infinite;
}

.pointer-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Control Instructions */
.control-instructions {
    position: absolute;
    bottom: 135px;
    left: calc(50%);
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.control-instructions.visible {
    opacity: 1;
    pointer-events: all;
}

.control-prompt-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 2px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}

/* Send Message Prompt */
.send-message-prompt {
    position: absolute;
    bottom: 205px;
    left: calc(50% + 35px);
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.send-message-prompt.visible {
    opacity: 1;
    pointer-events: all;
}
