/* Countdown Timer Styles */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #9146ff;
    --accent-secondary: #6441a5;
    --border-color: #333;
    --border-radius: 12px;
    --transition: 0.2s ease;
}

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

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

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.tagline {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.back-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.main-content {
    display: grid;
    gap: 1.5rem;
}

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

.preview-section,
.controls-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Timer Preview */
.timer-preview {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.timer-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-display {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* Timer Controls */
.timer-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.timer-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

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

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

/* Download Section */
.download-section {
    text-align: center;
}

.download-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3);
}

.download-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Controls */
.control-group {
    margin-bottom: 1.25rem;
}

.control-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.duration-inputs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.duration-inputs>div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duration-inputs input {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.25rem;
}

.duration-inputs span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.preset-durations,
.preset-labels {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preset-durations button,
.preset-labels button {
    padding: 0.4rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.preset-durations button:hover,
.preset-labels button:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

input[type="text"],
select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

input:focus,
select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.color-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

input[type="color"] {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-tertiary);
}

.color-presets {
    display: flex;
    gap: 0.5rem;
}

.color-presets button {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.color-presets button:hover {
    transform: scale(1.1);
    border-color: white;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
}

/* FAQ & Footer */
.faq-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.faq-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

.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;
}