/* 10s VoiceOver - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050507;
    --bg-secondary: #0a0a0f;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #808080;
    --border: rgba(255, 255, 255, 0.08);
    --danger: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #050507 0%, #0a0a0f 50%, #1a1a2e 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
}

.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Home Page */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-content {
    text-align: center;
    padding: 40px 20px;
}

.home-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-icon {
    font-size: 4rem;
    margin: 30px 0;
    animation: pulse 2s infinite;
}

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

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: #c0c0c0;
    margin-bottom: 20px;
}

.warning-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.header .sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Section */
.section {
    margin-bottom: 30px;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}

/* Record Container */
.record-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

.record-status {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.record-timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.record-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.record-btn:active {
    transform: scale(0.95);
}

.record-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Audio Preview */
.audio-preview {
    margin-top: 20px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.preview-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--accent);
}

#audio-player {
    width: 100%;
}

/* Text Area */
.text-area {
    width: 100%;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-area:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
}

.text-area::placeholder {
    color: #505050;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: var(--bg-primary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Result */
.result-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.result-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(239, 68, 68, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Brand Footer */
.brand-footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 30px;
}

.brand-text {
    color: #404040;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
    .home-content h1 {
        font-size: 1.8rem;
    }
    
    .record-btn {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
}
