/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
header {
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.tagline {
    color: #666;
    font-size: 1.1em;
}

/* Location Info */
.location-info {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95em;
    color: #555;
}

#locationStatus {
    font-weight: 500;
}

/* Main Tap Button */
.tap-button {
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    touch-action: manipulation;
}

.tap-button:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.tap-button:active {
    transform: scale(0.98);
}

.tap-button.listening {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
    }
    50% {
        box-shadow: 0 10px 50px rgba(245, 87, 108, 0.7);
    }
}

.tap-button.processing {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.button-text {
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button-icon {
    font-size: 4em;
}

/* Status Message */
.status-message {
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    min-height: 30px;
    color: #667eea;
}

/* Transcript Box */
.transcript-box,
.response-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.transcript-box h3,
.response-box h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.transcript-box p,
.response-box p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
}

#transcriptText {
    color: #888;
    font-style: italic;
}

#transcriptText.active {
    color: #333;
    font-style: normal;
}

#responseText {
    color: #888;
    font-style: italic;
}

#responseText.active {
    color: #333;
    font-style: normal;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.help-text {
    color: #888;
    font-size: 0.9em;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .button-text {
        font-size: 1.5em;
    }

    .button-icon {
        font-size: 3em;
    }

    .tap-button {
        min-height: 180px;
    }
}

/* Accessibility */
.tap-button:focus {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

/* Error state */
.error {
    color: #f5576c;
}

.success {
    color: #51cf66;
}
