/* Webcam Test Styles */

:root {
    --bg-primary: #0e0e10;
    --bg-secondary: #18181b;
    --bg-tertiary: #1f1f23;
    --text-primary: #efeff1;
    --text-secondary: #adadb8;
    --text-muted: #848494;
    --accent-primary: #9146ff;
    --accent-secondary: #772ce8;
    --accent-hover: #a970ff;
    --border-color: #2f2f35;
    --success: #00f593;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.15s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-md);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 4px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.back-link:hover {
    color: var(--accent-primary);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.video-section,
.info-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#video.active {
    display: block;
}

#video.mirrored {
    transform: scaleX(-1);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--text-muted);
}

.video-placeholder.hidden {
    display: none;
}

.controls {
    display: flex;
    gap: var(--space-sm);
}

.start-btn,
.toggle-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.start-btn {
    flex: 1;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
}

.start-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-primary));
}

.start-btn.stop {
    background: #eb0400;
}

.toggle-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.toggle-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

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

.toggle-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.audio-meter {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.audio-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--success), #ffb800, #eb0400);
    transition: width 0.1s;
}

.audio-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.footer {
    margin-top: var(--space-xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
}


/* SEO Guide Section */
.seo-guide {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    color: var(--text-secondary);
}

.seo-guide h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    text-align: center;
}

.seo-guide h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.seo-guide p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.seo-guide ul,
.seo-guide ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.seo-guide li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.seo-guide a {
    color: var(--accent-primary);
    text-decoration: none;
}

.seo-guide a:hover {
    text-decoration: underline;
}

.seo-guide strong {
    color: var(--text-primary);
}

.guide-highlight {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}