/* HUNT MASTER - Public Pages CSS (login, register, about, faq, manual, terms, privacy) */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f6f9f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-weight: 800;
    font-size: 18px;
    color: #1a2e1e;
    text-decoration: none;
    letter-spacing: .06em;
    flex: 1;
}

.logo span { color: #4a7c59; }

.header-nav { display: flex; gap: 10px; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
    white-space: nowrap;
    text-decoration: none;
}

.btn-ghost { background: none; color: #374151; border: 1px solid #e5e7eb; }
.btn-ghost:hover { background: #f9fafb; }
.btn-primary { background: #4a7c59; color: #fff; }
.btn-primary:hover { opacity: .88; }

/* Main */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em 0;
}

/* ─── Auth Pages (login, register) ─────────────────────── */
.auth-container {
    width: 90%;
    max-width: 450px;
}

.auth-box {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
    color: #1a2e1e;
    margin-bottom: 0.3em;
    letter-spacing: 0.5px;
}

h1 span { font-weight: 300; }

.auth-box h2 {
    text-align: center;
    color: #666;
    margin-bottom: 1.5em;
    font-size: 1.1em;
    font-weight: 400;
}

.form-group { margin-bottom: 1.5em; }

label {
    display: block;
    margin-bottom: 0.5em;
    color: #333;
    font-weight: 500;
    font-size: 0.9em;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #1a2e1e;
}

.auth-box .btn-primary {
    width: 100%;
    padding: 14px;
    background: #1a2e1e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-box .btn-primary:hover { background: #2a3e2a; opacity: 1; }

.auth-links {
    margin-top: 1.5em;
    text-align: center;
}

.auth-links p {
    margin: 0.5em 0;
    color: #666;
    font-size: 0.9em;
}

.auth-links a {
    color: #1a2e1e;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover { text-decoration: underline; }

small {
    display: block;
    margin-top: 0.3em;
    color: #999;
    font-size: 0.8em;
}

.checkbox { display: flex; align-items: center; }

.checkbox label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: 400;
}

.checkbox input[type="checkbox"] {
    margin-right: 0.5em;
    width: auto;
}

/* ─── Content Pages (about, faq, manual, terms, privacy) ─── */
body.content-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.content-page main {
    display: block;
    padding: 30px 0 80px 0;
}

body.content-page main > * {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body.content-page main > h1 {
    text-align: center;
    margin-bottom: 0.1em;
}

body.content-page main > .subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 2em;
}

.bold { font-weight: 700 !important; }
.light { font-weight: 300 !important; }

body.content-page h1 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 0.1em;
    text-align: center;
    letter-spacing: .06em;
    color: #1a2e1e;
    position: relative;
    z-index: 1;
}

body.content-page h1 span.light,
body.content-page h1 span:not(.bold) {
    color: #4a7c59;
    font-weight: 400;
}

body .subtitle {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 2em !important;
    position: relative;
}

.subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a7c59, #7dbf8e);
    margin: 10px auto 0;
    border-radius: 2px;
}

.content {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    padding-top: 0.25em !important;
    padding: 2px 45px 40px 45px !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
    font-size: 0.95em;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.mission-section {
    margin-bottom: 3em;
    text-align: center;
    padding-top: 2em !important;
}

.content .mission-section h2.no-border {
    text-align: center !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 1em !important;
}

.mission-section h2::before { display: none !important; }
.mission-section p { text-align: center; }

.content h2 {
    color: #1a2e1e;
    margin-top: 1.2em !important;
    margin-bottom: 1.0em !important;
    font-size: 1.6em;
    font-weight: 300;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 25px;
}

.content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #4a7c59, #7dbf8e);
    border-radius: 2px;
}

.content h2.no-border::before { display: none; }
.content h2:first-of-type { margin-top: 0.5em !important; }

.content h3 {
    color: #333;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.content h4 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #333;
    font-size: 1.05em;
    font-weight: 500;
}

.content p { margin-bottom: 1.2em; }

.content ul,
.content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
    padding-left: 0;
}

.content li { margin-bottom: 0.5em; }

/* Tables */
.comparison-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2em !important;
    margin-bottom: 2em;
    width: 100%;
}

table { width: 100%; border-collapse: collapse; }

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e1e4e8;
    font-size: 0.9em;
}

th:first-child, td:first-child { text-align: left; }
th { background: #f6f8fa; font-weight: bold; color: #333; }
.feature-name { text-align: left; font-weight: 500; background: #fafbfc; }

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.note-item {
    background: white;
    padding: 1.8em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.note-item h4 { margin-bottom: 1em; color: #333; font-size: 1.1em; }
.note-item p { margin-bottom: 1em; color: #666; line-height: 1.5; }
.note-item ul { margin: 0; padding-left: 1.2em; }
.note-item li { margin-bottom: 0.5em; color: #555; line-height: 1.4; }

/* Nav icon (content pages) */
.nav-icon { display: inline; font-size: 1.1em; vertical-align: middle; }
.nav-text { display: none; vertical-align: middle; margin-left: 6px; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
    background: #1a2e1e;
    color: #fff;
    padding: 40px 24px;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 20px;
}

.footer-logo span { color: #4a7c59; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
    font-size: 12px;
    color: #6b7280;
}

.footer-copy a { color: #6b7280; text-decoration: none; }
.footer-copy a:hover { color: #9ca3af; }

/* Legacy .copyright alias */
.copyright { color: #6b7280; font-size: 0.7rem; }
.copyright a { color: #6b7280; text-decoration: none; transition: color 0.3s; }
.copyright a:hover { color: #4a7c59; }

/* ─── Modal (register page) ──────────────────────────────── */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2em;
    border-radius: 10px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2em;
    cursor: pointer;
    color: #666;
}

.modal-close:hover { color: #4a7c59; }
.modal-content h2 { margin-bottom: 1em; color: #1a2e1e; }

.modal-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #16C79A;
    font-size: 1.1em;
}

.modal-content ul { margin-left: 1.5em; }

/* ─── Mobile Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    body { display: block; }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: 44px;
        background: #1a2e1e;
    }

    .logo { color: #fff; }
    .logo span { color: #7dbf8e; }
    .header-nav { display: none; }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: auto;
        padding: 6px 0;
    }

    main {
        padding: 44px 0 50px 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-container {
        width: 90%;
        max-width: 450px;
        margin: 0 auto;
    }

    h1 { font-size: 1.2em; margin-bottom: 0.1em; }

    h2 { font-size: 0.85em; margin-bottom: 0.6em; }

    .auth-box { padding: 0.8em; }

    .form-group { margin-bottom: 0.6em; }

    label { font-size: 0.8em; margin-bottom: 0.2em; }

    input[type="password"],
    input[type="email"] { padding: 8px; font-size: 0.9em; }

    .auth-box .btn-primary { padding: 10px; font-size: 0.9em; }

    .auth-links { margin-top: 0.6em; }
    .auth-links p { margin: 0.2em 0; font-size: 0.8em; }

    .footer-links a { margin: 0 0.3em; font-size: 0.6rem; }
    .footer-links { margin-bottom: 2px; }
    .copyright { font-size: 0.6rem; }

    /* Content pages on mobile */
    body.content-page main {
        padding: 44px 0 50px 0;
        align-items: flex-start;
    }

    .content {
        padding: 1em !important;
    }

    .nav-text { display: inline; }
}
