/* --- Vanlife Community Global Variables --- */
:root {
    --primary-earth: #4A5D4E;   /* Forest Green */
    --accent-sunset: #E67E22;  /* Warm Orange */
    --bg-light: #F9F7F2;       /* Sand/Paper Background */
    --card-white: #FFFFFF;
    --text-main: #2C3E50;      /* Dark Slate */
    --text-muted: #7F8C8D;
    --border-soft: #DCDDE1;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- General Reset & Typography --- */
body {
    background: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    text-transform: none; /* Removed the forced uppercase for a friendlier feel */
    font-weight: 700;
    color: var(--primary-earth);
}

.text-dim { color: var(--text-muted) !important; }
.text-green { color: var(--accent-sunset) !important; }

/* --- Breadcrumbs --- */
.breadcrumb-container {
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-soft);
}
.breadcrumb-container a {
    color: var(--primary-earth);
    text-decoration: none;
    font-weight: 600;
}

/* --- Dashboard / Menu Cards (Admin & Home) --- */
.menu-card {
    display: block;
    background: var(--card-white);
    border: 1px solid var(--border-soft);
    border-radius: 12px; /* Softened edges */
    padding: 30px;
    margin-bottom: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 6px solid var(--primary-earth);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-sunset);
}
.menu-title { color: var(--text-main); font-size: 1.25rem; margin-bottom: 8px; }
.menu-desc { color: var(--text-muted); }

/* --- Buttons --- */
.btn-terminal, .btn-select, .btn-terminal-tag {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent-sunset);
    color: #fff !important;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn-terminal:hover, .btn-select:hover {
    background: var(--accent-sunset);
    color: #fff;
}

/* --- Specialized Admin Interface --- */
.terminal-input {
    background: #fff;
    border: 2px solid var(--border-soft);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    transition: 0.3s;
}
.terminal-input:focus {
    border-color: var(--primary-earth);
    box-shadow: 0 0 0 4px rgba(74, 93, 78, 0.1);
}

/* --- Content Wrappers (Article/Privacy View) --- */
.content-wrapper-terminal {
    max-width: 900px;
    margin: 40px auto;
    background: var(--card-white);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- Record Detail Grid --- */
.record-grid {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}
.detail-label { background: #f8f9fa; color: var(--primary-earth); padding: 15px; font-weight: bold; }
.detail-value { background: #fff; color: var(--text-main); padding: 15px; border-bottom: 1px solid #eee; }

/* --- Highlight Tags --- */
.highlight-tag {
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent-sunset);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.banner-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}
.banner-container img {
    display: block;
    width: 100%;
    height: auto;
}

/* Header Background & Scaling */
.banner-outer {
    width: 100%;
    background-color: var(--bg); /* Matches the site background color */
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.banner-inner {
    width: 50%; /* Desktop Scaling */
    margin: 0 auto; /* Centering */
    margin-top: 15px;
    display: block;
}

.banner-inner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Overrides (Make banner 100% on small screens) */
@media (max-width: 767px) {
    .banner-inner {
        width: 100%;
    }
}

.featured-main {
    border-left: 4px solid var(--green);
    background: rgba(0, 255, 65, 0.05);
    padding: 30px !important;
}

.img-grayscale {
    filter: grayscale(40%);
    transition: 0.3s;
}

.img-grayscale:hover {
    filter: grayscale(0%);
}

.bg-black-secondary {
    background-color: #0d0d0d;
}

.mb-container-banner {
        width: 100%;           /* Fills the container exactly */
        margin: 15px 0;        /* 10px top/bottom margin */
        overflow: hidden;
        display: block;
    }
    
    .mb-container-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;     /* Ensures image doesn't stretch weirdly */
        display: block;
        border-radius: 4px;
    }

 /* Forced Horizontal Scroll for Tags */
        .tag-scroll-container {
            display: flex;
            overflow-x: auto !important; 
            overflow-y: hidden;
            white-space: nowrap;
            gap: 12px;
            padding: 10px 0;
            margin-bottom: 30px;
            -webkit-overflow-scrolling: touch;
            border-bottom: 1px solid #222;
        }
        .tag-scroll-container::-webkit-scrollbar { height: 4px; }
        .tag-scroll-container::-webkit-scrollbar-thumb { background: var(--dim-green); border-radius: 10px; }

        /* Balanced Search Bar and Button */
        .search-container-full {
            display: flex;
            width: 100%;
            margin-bottom: 0px; 
            gap: 0; 
        }
        .search-container-full .terminal-input {
            width: 85% !important; 
            border-right: none;
        }
        .search-container-full .btn-terminal {
            width: 15% !important; 
            flex-shrink: 0;
            white-space: nowrap;
        }

        /* Sub-Banner Row Styling */
        .sub-banner-row {
            margin: 10px auto !important; /* 5px margin top and bottom */
        }
        @media (min-width: 768px) {
            .sub-banner-row { max-width: 50% !important; } /* 50% of desktop width */
        }
        @media (max-width: 767px) {
            .sub-banner-row { max-width: 95% !important; } /* Wider on mobile for readability */
        }

        /* Enhanced Video Tiles */
        .video-tile-balanced {
            background: rgba(255, 255, 255, 0.03); 
            border: 1px solid #222;
            padding: 15px;
            margin-bottom: 1.5rem;
            min-height: 120px; 
            display: flex;
            align-items: center;
            transition: 0.3s;
        }
        .video-tile-balanced:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: var(--green);
        }

/* YouTube Tile Refinements */
.yt-tile-custom {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.yt-tile-custom:hover {
    transform: translateY(-5px);
    border-color: #00ff41 !important; /* Matches your terminal green */
}

.yt-tile-custom img {
    filter: grayscale(20%);
    transition: filter 0.2s ease;
}

.yt-tile-custom:hover img {
    filter: grayscale(0%);
}

 .content-wrapper-terminal {
            max-width: 900px;
            margin: 0 auto;
            border: 1px solid var(--dim-green);
            background: rgba(0, 20, 0, 0.4);
            padding: 40px;
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.05);
        }

        .full-text {
            color: #e0e0e0;
            line-height: 1.8;
            font-size: 1.1rem;
        }
        .full-text h2, .full-text h3 { color: #00ff00; margin-top: 30px; margin-bottom: 15px; text-transform: uppercase; font-weight: bold; }
        .full-text ul, .full-text ol { margin-bottom: 20px; padding-left: 25px; border-left: 1px solid #333; }
        .full-text li { margin-bottom: 10px; }
        .full-text table { width: 100%; border-collapse: collapse; margin: 25px 0; background: rgba(255,255,255,0.02); }
        .full-text td, .full-text th { padding: 12px; border: 1px solid #333; }
        .full-text th { background: #111; color: #00ff00; }

     
        .ai-summary-box {
            background: rgba(0, 255, 0, 0.03);
            border: 1px solid #004400;
            padding: 20px;
            border-radius: 4px;
        }

/* --- Middle Beach Vanlife Theme Variables --- */
:root {
    --forest: #2d3e33;      /* Primary Forest Green */
    --sunset: #e67e22;      /* Accent Orange */
    --sand: #f4f1ea;        /* Background Cream/Sand */
    --bark: #3d2b1f;        /* Deep Brown for text */
    --card-bg: #ffffff;     /* White for content cards */
    --border-soft: #dcdde1;
    --font-heading: 'Georgia', serif; /* Or any custom serif you prefer */
    --font-body: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Base Typography & Background --- */
body {
    background-color: var(--sand);
    color: var(--bark);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--forest);
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* --- Navigation & Banners --- */
.banner-outer {
    width: 100%;
    margin-bottom: 20px;
}
.sub-banner-row img {
    border: 2px solid var(--forest) !important;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sub-banner-row img:hover {
    transform: translateY(-3px);
    box-shadow: 4px 4px 0px var(--sunset);
}

/* --- Inputs & Buttons --- */
.search-container-full {
    display: flex;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.terminal-input { /* Kept class name but changed style */
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-right: none;
    color: var(--bark);
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
}
.btn-terminal { /* Converted to modern button */
    background: var(--forest);
    color: var(--sand);
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}
.btn-terminal:hover {
    background: var(--sunset);
    color: #fff;
}

/* --- Content Cards --- */
.menu-card, .yt-tile-custom {
    background: var(--card-bg);
    border: 1px solid var(--border-soft) !important;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.menu-card:hover, .yt-tile-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    border-color: var(--forest) !important;
}

/* --- Tags & Badges --- */
.status-tag {
    background: var(--sunset);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.text-dim { color: #7f8c8d !important; }
.text-green { color: var(--forest) !important; }
.text-sunset { color: var(--sunset) !important; }

/* --- Tags Scroll Container --- */
.tag-scroll-container a {
    color: var(--forest);
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}
.tag-scroll-container a:hover, .tag-scroll-container a.status-on {
    background: var(--forest);
    color: var(--sand);
    border-color: var(--forest);
}

/* --- Article & AI Summary Text Formatting --- */
.full-text {
    color: var(--text-main); /* Dark Slate for readability */
    line-height: 1.8;
    font-size: 1.1rem;
}

.full-text h2, .full-text h3 { 
    color: var(--primary-earth); /* Forest Green */
    margin-top: 30px; 
    margin-bottom: 15px; 
    text-transform: none; /* Removes the old uppercase terminal look */
    font-weight: bold; 
}

.full-text ul, .full-text ol { 
    margin-bottom: 20px; 
    padding-left: 20px;
    color: var(--text-main);
}

.full-text li {
    margin-bottom: 10px;
}