/* Rivers Project - Main Stylesheet */
/* Global styles used across all pages */

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

html {
    scroll-behavior: smooth;
}

/* Utility class for hiding elements (CSP-compliant alternative to inline style) */
.hidden {
    display: none !important;
}

/* About page tagline */
.about-tagline {
    text-align: center;
    margin-top: 2em;
    font-style: italic;
    opacity: 0.9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.header-brand:hover {
    opacity: 0.8;
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title h1 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 22px;
}

.nav a {
    color: #3498db;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 14px;
    position: relative;
}

.nav a:hover {
    background: #ecf0f1;
}

/* Admin Panel Link Styling */
#admin-link {
    color: #dc2626;
    font-weight: 600;
    background: #fef2f2;
    border: 2px solid #dc2626;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

#admin-link:hover {
    background: #fee2e2;
    color: #991b1b;
    text-decoration: none;
}

#admin-link::before {
    content: "";
    pointer-events: none;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-info {
    font-size: 13px;
    color: #7f8c8d;
}

#auth-button {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

#auth-button:hover {
    background: #2980b9;
}

pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 14px;
}

code {
    background: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #27ae60;
    color: white;
}

.badge-info {
    background: #3498db;
    color: white;
}

.badge-beta {
    background: #f39c12;
    color: white;
    margin-left: 10px;
    font-size: 11px;
    vertical-align: middle;
}

/* Form Styles (used on submit page and admin pages) */
.submit-intro, .info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.submit-intro p, .info-box p {
    margin: 0;
    color: #34495e;
    font-size: 16px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.error-message strong {
    font-weight: 600;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.warning-message strong {
    font-weight: 600;
}

.warning-message ul {
    margin: 10px 0 0 20px;
}

.warning-message p {
    margin: 5px 0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.form-container {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #7f8c8d;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #bdc3c7;
}

.contact-info {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    text-align: center;
}

.contact-info p {
    margin: 0;
    color: #856404;
}

.contact-info a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

.contact-info a:hover {
    color: #533f03;
}

/* Navigation Group Styles */
.nav {
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a:not(:first-child)::before {
    content: "|";
    position: absolute;
    left: -6px;
    color: #c5ced4;
}

.nav-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: #dfe6e9;
    margin: 0 5px;
}

/* Footer Styles */
.site-footer {
    background: transparent;
    color: #5a6c7d;
    padding: 16px 20px 8px;
    margin-top: 24px;
    border-top: none;
    border-radius: 0;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
}

.footer-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-brand {
    font-weight: 600;
    font-size: 12px;
    color: inherit;
}

.footer-brand-link {
    color: inherit;
    text-decoration: none;
}

.footer-brand-link:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.footer-badge-beta {
    background: #f39c12;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
}

.footer-line a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-line a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.footer-separator {
    color: #a1acb6;
}

.footer-disclaimer {
    margin-top: 4px;
    font-size: 0.6em;
    opacity: 0.7;
    line-height: 1.45;
    max-width: 820px;
    text-align: center;
    color: inherit;
}

.footer-disclaimer a {
    font-size: 1em;  /* Inherit from parent */
    opacity: 1;  /* Inherit from parent */
    text-decoration: none;
    color: inherit;
    line-height: 1.3;
}

/* About Page Styles */
.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.about-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e8ed;
}

.about-section:last-child {
    border-bottom: none;
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.about-section h3 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 18px;
}

.about-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-section ul {
    margin: 20px 0;
    padding-left: 25px;
}

.about-section li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-section li strong {
    color: #2c3e50;
}

.about-section a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.about-section a:hover {
    border-bottom-color: #3498db;
}

.effective-date {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        overflow-x: hidden;
    }

    .container {
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        overflow-x: hidden;
    }

    .form-container {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
    }

    .nav {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-links a:not(:first-child)::before {
        display: none;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 8px 0;
    }

    .nav-group {
        flex-wrap: wrap;
    }

    .nav-separator {
        display: none;
    }

    .auth-section {
        margin-left: auto;
        flex-shrink: 0;
    }

    .footer-line {
        font-size: 11px;
    }
}
