/* ============================================
   10MinuteTimer.us - Main Stylesheet
   Professional, responsive, accessible design
   ============================================ */

/* CSS Variables for Theme Support */
:root {
    /* Light Theme (Default) */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #7c8ff0;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    
    --text-color: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
    
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Roboto Mono', 'Courier New', monospace;
    
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f1624;
    
    --text-color: #eee;
    --text-secondary: #b8b8b8;
    --text-muted: #888;
    
    --border-color: #2d3748;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.logo a:hover {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-controls {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    color: var(--text-color);
}

.icon-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Timer Section */
.timer-section {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.timer-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
}

/* Progress Ring */
.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 880;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s linear;
}

/* Timer Display */
.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.time-digits {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    display: block;
    letter-spacing: 0.05em;
    line-height: 1;
}

.timer-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-weight: 500;
}

/* Preset Buttons */
.presets-section {
    text-align: center;
    margin: 40px 0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.preset-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.preset-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    color: var(--text-color);
}

.preset-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* Control Buttons */
.controls-section {
    text-align: center;
    margin: 40px 0;
}

.main-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

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

.control-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.control-btn.secondary {
    background: var(--warning-color);
    color: #000;
}

.control-btn.secondary:hover {
    background: #e0a800;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.control-btn.tertiary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.control-btn.tertiary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Settings Panel */
.settings-panel {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.settings-toggle {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.settings-toggle:hover {
    background: var(--primary-dark);
}

.settings-content {
    margin-top: 20px;
    display: none;
}

.settings-content[aria-hidden="false"] {
    display: block;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.setting-label input[type="checkbox"] {
    margin-right: 10px;
}

.custom-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.custom-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.custom-input.small {
    width: 80px;
    display: inline-block;
}

.setting-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
}

.volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.small-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 10px;
}

.small-btn:hover {
    background: var(--primary-dark);
}

.share-controls {
    display: flex;
    gap: 10px;
}

.share-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.embed-textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    resize: vertical;
    min-height: 80px;
}

.loop-settings {
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

/* Keyboard Shortcuts */
.shortcuts-section {
    max-width: 600px;
    margin: 40px auto;
}

.shortcuts-details {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
}

.shortcuts-summary {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.shortcuts-content {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

kbd {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 0 var(--border-color);
}

/* Content Sections */
.content-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.content-article h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-article h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.content-article p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-article ul,
.content-article ol {
    margin: 20px 0 20px 30px;
    color: var(--text-secondary);
}

.content-article li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-tagline {
    margin-top: 10px;
    font-style: italic;
}

/* Page Content Styles */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* About Page Features */
.about-section {
    margin: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-list {
    list-style: none;
    margin-left: 0;
}

.feature-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* CTA Sections */
.cta-section {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition-speed);
    display: inline-block;
}

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

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* FAQ Styles */
.faq-container {
    margin: 40px 0;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer ul {
    margin: 15px 0 15px 25px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Privacy Policy Styles */
.privacy-policy {
    max-width: 900px;
}

.last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

.policy-section {
    margin: 40px 0;
}

.policy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.policy-section h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.privacy-summary {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-info {
    padding: 20px;
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.contact-method h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-detail {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-form-section {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-speed);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quick-faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quick-faq-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius-sm);
}

.quick-faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.view-all-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.view-all-link:hover {
    color: var(--primary-dark);
}

/* Blog Styles */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-emoji {
    font-size: 4rem;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.blog-date {
    color: var(--text-muted);
}

.blog-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    transition: color var(--transition-speed);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.blog-read-more:hover {
    color: var(--primary-dark);
}

.blog-cta {
    text-align: center;
    margin: 60px 0;
    padding: 50px 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-date,
.post-reading-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-intro {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

.post-content {
    line-height: 1.8;
}

.post-content section {
    margin: 40px 0;
}

.post-content h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.post-content h4 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 30px;
    color: var(--text-secondary);
}

.post-content li {
    margin-bottom: 12px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.mistake-box,
.schedule-box {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin: 20px 0;
    border-left: 4px solid var(--warning-color);
}

.post-cta {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    color: white;
}

.post-cta h3 {
    color: white;
    margin-bottom: 15px;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.post-related {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 50px;
}

.post-related h3 {
    margin-bottom: 20px;
}

.post-related ul {
    list-style: none;
    margin: 0;
}

.post-related li {
    margin-bottom: 15px;
}

.post-related a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.post-related a:hover {
    color: var(--primary-dark);
}

/* Custom Timer Page Styles */
.mode-section {
    margin: 40px 0;
}

.mode-selector {
    display: flex;
    gap: 0;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.mode-tab {
    flex: 1;
    padding: 15px 25px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
    color: var(--text-color);
}

.mode-tab:hover {
    background: var(--bg-tertiary);
}

.mode-tab.active {
    background: var(--primary-color);
    color: white;
}

.mode-panel {
    display: none;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.mode-panel.active {
    display: block;
}

.panel-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.panel-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.time-inputs {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
    margin: 30px 0;
}

.time-input-group {
    text-align: center;
}

.time-input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.time-input {
    width: 80px;
    padding: 15px;
    font-size: 1.5rem;
    font-family: var(--font-mono);
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
}

.time-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 10px;
}

.set-btn {
    display: block;
    margin: 30px auto 0;
    padding: 15px 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.set-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Stopwatch Styles */
.stopwatch-controls {
    text-align: center;
    margin: 30px 0;
}

.lap-btn {
    padding: 12px 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lap-btn:hover:not(:disabled) {
    background: #6a3f8f;
    transform: translateY(-2px);
}

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

.laps-container {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.laps-list {
    max-height: 300px;
    overflow-y: auto;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-color);
    margin-bottom: 10px;
    border-radius: var(--border-radius-sm);
}

/* Interval Timer Styles */
.interval-config {
    max-width: 500px;
    margin: 0 auto;
}

.interval-group {
    margin-bottom: 25px;
}

.interval-label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.round-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    color: var(--text-color);
}

.interval-info {
    text-align: center;
    font-size: 1.2rem;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.interval-progress {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.interval-status {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.interval-bar {
    height: 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
}

.interval-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    width: 0%;
}

/* Sound Settings Section */
.sound-settings-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.sound-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.sound-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sound-option.full-width {
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .timer-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .time-digits {
        font-size: 3rem;
    }
    
    .preset-buttons {
        gap: 10px;
    }
    
    .preset-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .main-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .control-btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .time-inputs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .timer-wrapper {
        width: 240px;
        height: 240px;
    }
    
    .time-digits {
        font-size: 2.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --shadow-sm: 0 0 0 2px #000;
        --shadow-md: 0 0 0 3px #000;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .nav-controls,
    .settings-panel,
    .shortcuts-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Fullscreen Styles */
.fullscreen-mode {
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-mode .timer-wrapper {
    width: 400px;
    height: 400px;
}

.fullscreen-mode .time-digits {
    font-size: 5rem;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
