/* ToRestart - Main Styles */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 2rem 0; }

/* Header */
.site-header {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 1.5rem; }
.nav-link { color: var(--gray-600); font-weight: 500; }
.nav-link:hover { color: var(--primary); text-decoration: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--gray-50); text-decoration: none; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}
.page-header h1 { font-size: 2.5rem; color: var(--gray-800); margin-bottom: 0.5rem; }
.page-header p { color: var(--gray-500); font-size: 1.1rem; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.hero-title { font-size: 3rem; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.5rem; opacity: 0.9; margin-bottom: 2rem; }

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.tool-card {
    display: block;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    color: inherit;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.tool-icon { font-size: 3rem; margin-bottom: 1rem; }
.tool-card h3 { color: var(--gray-800); margin-bottom: 0.5rem; }
.tool-card p { color: var(--gray-500); font-size: 0.9rem; }

/* Section Styles */
.section-title {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    text-align: center;
}
.features-grid, .principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.feature, .principle {
    padding: 1.5rem;
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Check Page */
.check-form { max-width: 600px; margin: 0 auto; }
.question-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.question-number {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.question-text { font-size: 1.1rem; margin-bottom: 1rem; }
.options-list { display: flex; flex-direction: column; gap: 0.75rem; }
.option-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}
.option-item:has(input:checked) {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}
.option-item input { margin-right: 0.75rem; }

/* Breathing Page */
.breathing-container { text-align: center; padding: 2rem 0; }
.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    transition: transform 0.5s ease;
}
.breathing-circle.inhale { transform: scale(1.3); }
.breathing-circle.hold { transform: scale(1.3); }
.breathing-circle.exhale { transform: scale(1); }
.breath-text { font-size: 1.5rem; font-weight: 600; }
.breath-count { font-size: 3rem; font-weight: 700; }
.breathing-guide { margin-top: 2rem; color: var(--gray-600); }

/* Tips Grid */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.tip-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.tip-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}
.tip-card h3 { margin-bottom: 0.75rem; }
.tip-card ul { list-style: none; padding: 0; }
.tip-card li { padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100); }
.tip-card li:last-child { border-bottom: none; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-icon { font-size: 2rem; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--gray-500); }

/* Stories */
.stories-list { display: flex; flex-direction: column; gap: 1.5rem; }
.story-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.story-title a { color: var(--gray-800); }
.story-excerpt { color: var(--gray-600); margin: 0.75rem 0; }
.story-meta { display: flex; gap: 1rem; font-size: 0.875rem; color: var(--gray-400); }
.story-tags { margin-top: 0.75rem; }
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: 9999px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* About Page */
.about-content { max-width: 800px; margin: 0 auto; }
.about-section { margin-bottom: 3rem; }
.about-section h2 { margin-bottom: 1rem; color: var(--gray-800); }
.about-section ul { margin-left: 1.5rem; }
.about-section li { margin-bottom: 0.5rem; }
.warning {
    padding: 1rem;
    background: #fef3cd;
    border-radius: var(--radius);
    border-left: 4px solid var(--warning);
}
.helpline-section .hotlines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.hotline-item {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
}
.hotline-item .phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
}
.modal-title { margin-bottom: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Footer */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
    margin-top: auto;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h4 { color: white; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--gray-400); }
.footer-links a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
}
.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    transition: all 0.2s;
}
.lang-link:hover {
    color: var(--primary);
    background: var(--gray-200);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 1rem; }
    .main-nav { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .header-actions { flex-wrap: wrap; justify-content: center; }
}