/* TimeTrack Website Styles */
:root {
    --color-primary: #0929bf;
    --color-primary-light: #029be6;
    --color-dark: #241540;
    --color-orange: #ff6b0c;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --max-width: 860px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
    color: var(--color-white);
    padding: 1.5rem 1rem;
}

header .container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

header h1 a {
    color: var(--color-white);
    text-decoration: none;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.lang-switch {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

.content-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

h2 {
    font-size: 1.6rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1rem;
    color: var(--color-text);
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

p {
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
}

li {
    margin-bottom: 0.3rem;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Hero Section (Index Page) */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
    color: var(--color-white);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero .app-store-badge {
    display: inline-block;
    margin-top: 1rem;
}

.hero .app-store-badge img {
    height: 44px;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* Screenshots Gallery */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.screenshots-gallery figure {
    text-align: center;
}

.screenshots-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.screenshots-gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Help Section Styling */
.help-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.help-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.help-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.help-item .help-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    font-size: 1.1rem;
}

.help-item strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.help-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Contact Form Area */
.contact-info {
    text-align: center;
    padding: 2rem 0;
}

.contact-info .email-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 1rem;
}

.contact-info .email-button:hover {
    background: var(--color-primary-light);
    text-decoration: none;
}

/* Table of Contents */
.toc {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.toc h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--color-text);
}

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

.toc li {
    margin-bottom: 0.25rem;
}

.toc a {
    font-size: 0.9rem;
}

/* Effective Date */
.effective-date {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    max-width: var(--max-width);
    margin: 3rem auto 1rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

footer a {
    color: var(--color-text-light);
    margin: 0 0.5rem;
}

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

footer .footer-links {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .content-card {
        padding: 1.25rem;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
