/* Cal Sans (headlines) – not on Google Fonts; loaded via Fontsource CDN */
@font-face {
    font-family: 'Cal Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/cal-sans@latest/latin-400-normal.woff2) format('woff2'),
         url(https://cdn.jsdelivr.net/fontsource/fonts/cal-sans@latest/latin-400-normal.woff) format('woff');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Theme: centralized colors for the site. Use these variables for consistency. */
:root {
    --color-bg: #2a2a2a;
    --color-bg-elevated: #1f1f1f;
    --color-bg-card: #333;
    --color-text: #ffffff;
    --color-text-secondary: #e8eaed;
    --color-text-body: #ccc;
    --color-text-muted: #999;
    --color-primary: #4a9eff;
    --color-primary-hover: #1557b0;
    --color-link: #e8eaed;
    --color-link-hover: #ffffff;
    --color-border: #444;
    --color-success: #34a853;
    --color-error: #ea4335;
    /* 87deg from horizontal = almost vertical; green at top */
--gradient-brand: linear-gradient(15deg, #6265be 0%, #87d4b3 100%);
}

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headlines use Cal Sans (loaded via @font-face above), weight 400 */
h1, h2, h3, h4, h5, h6,
.page-title,
.feature-highlight h2,
.shortcuts-section h2,
.shortcut-category h3,
.tips-section h2,
.release-version,
.form-section h3,
.success-message h2 {
    font-family: 'Cal Sans', 'Open Sans', Arial, sans-serif;
    font-weight: 400;
}

/* Navigation */
.navbar {
    background-color: #1f1f1f;
    border-bottom: 1px solid #444;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

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

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 500;
}

.cta-button {
    background-color: #1a73e8;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #1557b0;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    display: block;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-cta {
    display: inline-block;
    background-color: #1a73e8;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
}

.hero-cta:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

.learn-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.learn-link:hover {
    color: #cccccc;
}

/* Footer */
.footer {
    background-color: transparent;
    border-top: none;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    color: #999;
    font-size: 14px;
    text-align: center;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1a73e8;
}

/* Learn Page */
.learn-content {
    flex: 1;
    padding: 40px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 32px;
    text-align: center;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Highlight */
.feature-highlight {
    margin-bottom: 60px;
}

.feature-highlight h2 {
    font-size: 32px;
    margin-bottom: 32px;
    color: #e8eaed;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: #333;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    background-color: #3a3a3a;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-key {
    font-size: 14px;
    color: #1a73e8;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 15px;
    color: #ccc;
    line-height: 1.5;
}

/* Shortcuts Section */
.shortcuts-section {
    margin-bottom: 60px;
}

.shortcuts-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
    color: #e8eaed;
}

.shortcut-category {
    margin-bottom: 40px;
}

.shortcut-category h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.shortcut-item {
    background-color: #333;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shortcut-item strong {
    font-size: 14px;
    color: #d4d4d4;
    font-weight: 600;
}

.shortcut-item p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

kbd {
    background-color: #1a1a1a;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #999;
    box-shadow: none;
}


/* Tips Section */
.tips-section {
    margin-bottom: 60px;
}

.tips-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
    color: #ffffff;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.tip-card {
    background-color: #333;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
}

.tip-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #ffffff;
}

.tip-card p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

/* Bug Report Form */
.form-content {
    flex: 1;
    padding: 40px 24px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.bug-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    background-color: #333;
    padding: 32px;
    border-radius: 12px;
}

.form-section h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1a73e8;
}

/* Release notes page: version heading + date, then bullet list */
.release-notes-body {
    color: #ccc;
}
.release-version {
    color: var(--color-primary);
    font-size: 32px;
    font-weight: 400;
    margin-top: 28px;
    margin-bottom: 10px;
}
.release-version:first-of-type {
    margin-top: 0;
}
.release-date {
    font-size: 14px;
    font-weight: normal;
    font-style: italic;
    color: #999;
    margin-left: 8px;
}
.release-changes {
    margin: 0 0 20px 1.2em;
    padding: 0;
    line-height: 1.6;
    font-weight: normal;
}
.release-changes li {
    margin-bottom: 6px;
    font-weight: normal;
}

.release-notes-body .release-footer-note {
    color: var(--color-text-muted);
    margin-top: 32px;
    font-size: 14px;
}
.release-notes-body .release-footer-note a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s;
}
.release-notes-body .release-footer-note a:hover {
    color: var(--color-link-hover);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.required {
    color: #ea4335;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #1f1f1f;
    border: 1px solid #555;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #999;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.submit-button {
    background-color: #1a73e8;
    color: #ffffff;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.submit-button:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    background-color: #333;
    padding: 48px;
    border-radius: 12px;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #34a853;
    border-radius: 50%;
    font-size: 48px;
    margin-bottom: 24px;
    color: #ffffff;
}

.success-message h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #ffffff;
}

.success-message p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 32px;
}

.secondary-button {
    background-color: #555;
    color: #ffffff;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.secondary-button:hover {
    background-color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .page-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

