/* ============================================
   Auxstar Media - Soft Umber Theme
   Palette reference: 3E2A1B, D8CBB2, 6F5B3C, 5B4A33, 8E7754
   ============================================ */

:root {
    --primary: #6F5B3C;
    --primary-dark: #3E2A1B;
    --primary-light: #8E7754;

    --bg-main: #D8CBB2;
    --bg-secondary: #E6D8C0;
    --bg-card: #F2E7D3;
    --bg-contrast: #5B4A33;

    --text-primary: #332618;
    --text-secondary: #5A4A36;
    --text-tertiary: #8C7A5E;

    --border: #CBB896;
    --border-light: #BCA883;

    --success: #4F7D5B;
    --warning: #B88530;
    --danger: #814235;
    --info: #4E6376;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

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

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

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header-ribbon {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 18px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-item {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-dark);
    border-color: var(--primary);
}

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

.btn-logout {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}

.btn-logout:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    margin: 32px 0;
    padding: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

section h1 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.hero-content {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 600;
}

.hero-content p {
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn-hero {
    flex: 1 1 180px;
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid var(--primary);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-hero:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-hero.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-hero.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(123, 107, 67, 0.25);
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.form-group small {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: 5px;
}

.verification-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: #fff;
    margin-bottom: 10px;
}

.verification-message {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-submit,
.btn-secondary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

.btn-submit:hover,
.btn-secondary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ============================================
   CARDS & ARTICLES
   ============================================ */

.articles-grid,
.railroads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.article-card,
.railroads-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    transition: border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.article-card:hover,
.railroads-card:hover {
    border-color: var(--primary);
}

.article-image,
.railroads-image {
    height: 160px;
    background: rgba(123, 107, 67, 0.12);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.article-image img,
.railroads-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content,
.railroads-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-category {
    align-self: flex-start;
    background: rgba(123, 107, 67, 0.14);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(123, 107, 67, 0.3);
}

.article-title,
.railroads-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.article-excerpt,
.railroads-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
}

.article-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 12px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-list-item {
    padding: 18px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.article-list-item h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.article-list-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

.article-list-item small {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* ============================================
   SECTIONS - Featured, Recent, About
   ============================================ */

.featured-section,
.recent-section,
.about-section,
.evidence-section,
.railroads-section,
.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
    margin: 32px 0;
}

.page-header {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 24px;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header p {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.page-header.rr-header {
    border-left: 4px solid var(--primary);
}

/* ============================================
   ARTICLE DETAIL
   ============================================ */

.article-page {
    max-width: 960px;
}

.article-hero {
    width: 100%;
    min-height: 240px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    margin: 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.article-hero.has-hero {
    background: #000;
}

.article-hero-placeholder {
    font-size: 20px;
    color: var(--text-tertiary);
    padding: 24px;
    text-align: center;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin: 32px 0 60px;
}

.article-summary {
    display: none;
    margin: 18px auto 0;
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.article-tags {
    display: none;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.article-body article {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.article-body p {
    margin: 0;
}

.article-body ul,
.article-body ol {
    margin: 0 0 0 20px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    color: var(--text-secondary);
    font-style: italic;
}

.article-body pre {
    background: #1e1e1e;
    color: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
}

.article-body code {
    font-family: 'Courier New', monospace;
    background: rgba(111, 91, 60, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.article-gallery {
    margin-top: 40px;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.article-gallery figure {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(57, 41, 26, 0.08);
}

.article-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-gallery figcaption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

/* ============================================
   FILTER & CONTROLS
   ============================================ */

.filter-section {
    background: transparent;
    border: none;
    padding: 12px 0;
    margin: 20px 0;
    border-radius: 0;
}

.filter-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    font-size: 13px;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   PREVIEW & DISPLAY
   ============================================ */


.image-preview,
.file-preview {
    margin-top: 10px;
    max-width: 280px;
    max-height: 180px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #fff;
    color: var(--text-tertiary);
    font-size: 13px;
}

.image-preview img,
.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   EVIDENCE
   ============================================ */

.evidence-form {
    max-width: 680px;
    margin: 0 auto 32px;
}

.evidence-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.evidence-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evidence-card h3 {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
}

.evidence-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.evidence-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 10px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(184, 133, 48, 0.18);
    color: var(--warning);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(184, 133, 48, 0.45);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-header {
    border-left: 4px solid var(--primary);
}

.contact-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
    margin: 32px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(57, 41, 26, 0.12);
}

.contact-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.contact-email {
    align-self: flex-start;
    font-weight: 600;
    color: var(--primary-dark);
    background: rgba(111, 91, 60, 0.12);
    border: 1px solid rgba(111, 91, 60, 0.22);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.contact-note {
    margin-top: 32px;
    background: rgba(184, 133, 48, 0.12);
    border: 1px solid rgba(184, 133, 48, 0.35);
    border-radius: 10px;
    padding: 20px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-contrast);
    color: #F2E7D3;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #F2E7D3;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 15px;
}

.empty-state p {
    margin: 0;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 3000;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 360px;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-color: rgba(79, 125, 91, 0.45);
    background: rgba(79, 125, 91, 0.12);
}

.notification-error {
    border-color: rgba(140, 63, 47, 0.45);
    background: rgba(140, 63, 47, 0.12);
}

.notification-info {
    border-color: rgba(78, 99, 118, 0.45);
    background: rgba(78, 99, 118, 0.12);
}

.notification-warning {
    border-color: rgba(184, 133, 48, 0.45);
    background: rgba(184, 133, 48, 0.12);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 12px 15px;
    }

    .logo-section {
        min-width: auto;
        width: 100%;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 15px;
        font-size: 13px;
    }

    .user-section {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 10px;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    section {
        padding: 25px;
        margin: 25px 0;
    }

    section h2 {
        font-size: 24px;
    }

    .articles-grid,
    .railroads-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .filter-controls {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .article-detail {
        padding: 28px;
        margin: 24px 0 48px;
    }

    .article-hero {
        min-height: 180px;
        margin: 24px 0;
    }

    .article-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 18px;
    }

    .nav-menu {
        gap: 10px;
        font-size: 11px;
    }

    .nav-item {
        padding: 2px 5px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .article-detail {
        padding: 20px;
    }

    .article-summary {
        font-size: 16px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    section {
        padding: 20px;
        margin: 20px 0;
    }

    section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .btn-submit {
        max-width: 100%;
    }

    .notification {
        max-width: calc(100% - 20px);
        right: 10px;
    }

    .evidence-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


