/*
 Theme Name:   Bussid Pro Skin
 Template:     generatepress
 Description:  Dark Gaming Vibe Child Theme for Bussid Mod Engine
 Version:      1.2.0
 Author:       Antigravity
*/

:root {
    --bps-bg-color: #121212;
    --bps-card-bg: #1e1e1e;
    --bps-text-color: #e0e0e0;
    --bps-accent-color: #00e676;
    /* Neon Green */
    --bps-border-radius: 12px;
}

/* =========================================
   1. GLOBAL STYLES (Dark Gaming Vibe)
   ========================================= */

body {
    background-color: var(--bps-bg-color);
    color: var(--bps-text-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Strict Container Width (Laptop Standard) */
.grid-container {
    max-width: 1200px !important;
}

/* Neon Green Text Logo */
.site-title a,
.site-title a:hover,
.site-title a:visited {
    color: #00e676 !important;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

/* Neon Green Image Logo Glow */
.site-logo img,
.header-image {
    filter: drop-shadow(0 0 5px #00e676);
}

/* Links & Buttons Accent */
a,
button,
input[type="submit"],
.button,
.generate-back-to-top {
    color: var(--bps-accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--bps-accent-color);
}

/* =========================================
   2. GENERATEPRESS OVERRIDES (Requested)
   ========================================= */

/* Dark Backgrounds for Key Areas */
.site-header,
.main-navigation,
.inside-article,
.sidebar .widget,
.site-footer {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Navigation Links */
/* Navigation Links */
.main-navigation .main-nav ul li a {
    color: #ffffff !important;
}

.main-navigation .main-nav ul li a:hover {
    color: var(--bps-accent-color) !important;
}

/* Headings Neon Green */
h1,
h2,
h3 {
    color: #00e676 !important;
}

h4,
h5,
h6 {
    color: #fff !important;
}

/* --- HEADER CONTAINER --- */
.site-header {
    background-color: #0c0c0c !important;
    /* Ultra Dark Grey (Not Pitch Black) */
    border-bottom: 3px solid #00e676;
    /* The "Gamer" Neon Line at the bottom */
    padding: 0px !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.inside-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    /* Fixed Pro Height */
}

/* --- LOGO (The "Bussid Mod Hub" Text) --- */
.site-branding {
    margin-right: auto;
    /* Pushes menu to the right */
}

.main-title a {
    color: #ffffff !important;
    /* White Text for Professionalism */
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.main-title a:hover {
    color: #00e676 !important;
    /* Green Glow on Hover */
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

/* --- MENU (The 4 Pages: Home, Truck, Bus, Map) --- */
.main-navigation {
    float: none !important;
    width: auto !important;
}

.main-navigation .main-nav ul {
    display: flex;
    /* Forces Horizontal Layout */
    gap: 30px;
    /* Space between buttons */
    margin: 0;
}

.main-navigation .main-nav ul li a {
    color: #aaaaaa !important;
    /* Dimmed Grey (Inactive) */
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 0 !important;
    line-height: 70px;
    /* Vertically centers text */
    background: transparent !important;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
    color: #00e676 !important;
    /* Neon Green (Active) */
}

/* --- HIDE JUNK --- */
.site-description,
button.menu-toggle,
.mobile-menu-control-wrapper {
    display: none !important;
}

/* --- MOBILE MENU FIX (Hamburger) --- */
@media (max-width: 768px) {
    button.menu-toggle {
        display: block !important;
        color: #fff;
    }

    .main-navigation .main-nav ul {
        display: none;
    }

    /* Default hide on mobile */
    .main-navigation.toggled .main-nav ul {
        display: block;
        background: #111;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
    }
}

/* =========================================
   3. ARCHIVE GRID LAYOUT (Bussid Mods)
   ========================================= */

/* Target the container for mod archives AND Home Page */
.post-type-archive-bussid_mod .site-main,
.tax-vehicle_type .site-main,
.tax-brand .site-main,
.home .site-main,
.blog .site-main {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Responsive adjustment for Grid */
@media (max-width: 1024px) {

    .post-type-archive-bussid_mod .site-main,
    .tax-vehicle_type .site-main,
    .tax-brand .site-main,
    .home .site-main,
    .blog .site-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .post-type-archive-bussid_mod .site-main,
    .tax-vehicle_type .site-main,
    .tax-brand .site-main,
    .home .site-main,
    .blog .site-main {
        grid-template-columns: 1fr;
    }
}

/* Card Styling for Archive Items */
.post-type-archive-bussid_mod article,
.tax-vehicle_type article,
.tax-brand article,
.home article,
.blog article {
    background-color: var(--bps-card-bg);
    border-radius: var(--bps-border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Lift Effect */
.post-type-archive-bussid_mod article:hover,
.tax-vehicle_type article:hover,
.tax-brand article:hover,
.home article:hover,
.blog article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.1);
    border-color: var(--bps-accent-color);
}

/* 
   STRICT SYMMETRY RULES (Screenshot Fixes) 
*/

/* Force archive/grid images to same height/ratio */
.post-image img,
.entry-summary img,
.resize-featured-image .post-image img {
    height: 250px !important;
    width: 100% !important;
    object-fit: cover !important;
    /* Prevents stretching */
    border-radius: 8px;
    /* Slight internal roundness */
    margin-bottom: 15px;
}

/* Single Page Image Sizing (Professional Fit) */
.page-header-image-single img,
.single .featured-image img {
    max-height: 500px !important;
    /* Cap height so it fits screen */
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

/* Uniform Card Structure */
.post-type-archive-bussid_mod article,
.home article {
    height: 100%;
    /* Stretch to fill flex/grid row */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title Styling in Grid - Professional Polish */
.entry-title {
    font-size: 1.25rem !important;
    /* Smaller, cleaner */
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    min-height: 55px;
    /* Force minimum height for alignment */
}

.entry-title a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.entry-title a:hover {
    color: var(--bps-accent-color);
}


/* --- FIX: SINGLE PAGE CONTAINER (Stop the Zoom/Wide look) --- */
.single-bussid_mod .site-content {
    max-width: 900px !important;
    /* Perfect reading width */
    margin: 40px auto !important;
    /* Center it */
    background-color: #121212;
    /* Match the dark theme */
}

.single-bussid_mod .inside-article {
    background: #1e1e1e;
    /* Dark Grey Card */
    padding: 40px !important;
    border-radius: 16px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* --- FIX: THE DOWNLOAD BUTTON (The "Conversion" Trigger) --- */
.mod-download-button {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    color: #000;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 0;
    border-radius: 8px;
    width: 100%;
    /* Full width of container */
    display: block;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.3);
    transition: transform 0.2s;
    text-decoration: none;
    /* Ensure no underline */
}

.mod-download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.5);
    color: #000;
    /* Ensure text remains black on hover */
}

/* --- NEW: STATS GRID (Size | Version | Type) --- */
/* We will use CSS Grid to style the plain text metadata if it exists, 
    or structure the content area better */
.entry-content h2 {
    color: #fff;
    border-left: 4px solid #00e676;
    padding-left: 15px;
    margin-top: 40px;
    font-size: 24px;
}

.entry-content p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
    /* Readable spacing */
}

/* Meta Badges (Retaining existing styles but tweaking for new context) */
.bme-meta-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bme-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
}

.bme-badge strong {
    color: var(--bps-accent-color);
    margin-right: 5px;
}

/* Content Area Text */
/* =========================================
   5. FOOTER REDESIGN
   ========================================= */

.site-footer {
    background-color: #0c0c0c !important;
    /* Match Header */
    border-top: 3px solid #00e676;
    padding: 60px 0;
    color: #888;
    font-size: 15px;
    margin-top: 60px;
    /* Separation from content */
}

/* Widget Titles */
.footer-widgets .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: #fff !important;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-left: 3px solid #00e676;
    padding-left: 15px;
    letter-spacing: 1px;
}

/* Links in Footer */
.footer-widgets ul li {
    margin-bottom: 12px;
}

.footer-widgets ul li a {
    color: #aaa !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widgets ul li a:hover {
    color: #00e676 !important;
    transform: translateX(5px);
    /* Slide effect */
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

/* Copyright Bar */
.site-info {
    background-color: #000 !important;
    padding: 20px 0;
    text-align: center;
    color: #555 !important;
    font-size: 13px;
    border-top: 1px solid #1a1a1a;
}

.site-info a {
    color: #777 !important;
}

/* =========================================
   6. HOMEPAGE HERO SECTION
   ========================================= */

.bps-hero {
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%),
        url('https://images.unsplash.com/photo-1605901309584-818e25960b8f?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 100px 20px 80px;
    text-align: center;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

.bps-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.bps-hero-title {
    font-size: 3.5rem !important;
    font-weight: 900;
    color: #fff !important;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.neon-text {
    color: #00e676;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}

.bps-hero-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 40px;
}

/* Hero Search Bar */
.bps-hero-search {
    margin-bottom: 30px;
}

.bps-hero-search .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #000;
    border: 2px solid #333;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.bps-hero-search .search-form:focus-within {
    border-color: #00e676;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

.bps-hero-search .search-field {
    flex: 1;
    background: transparent;
    border: none !important;
    color: #fff;
    padding: 20px 30px;
    font-size: 1.1rem;
    outline: none;
}

.bps-hero-search .search-submit {
    background: #00e676;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 40px;
    border: none;
    cursor: pointer;
}

.bps-hero-search .search-submit:hover {
    background: #fff;
    color: #00e676;
}

/* Quick Filters */
.bps-hero-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-label {
    color: #777;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.bps-filter-btn {
    color: #fff;
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.bps-filter-btn:hover {
    border-color: #00e676;
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

@media (max-width: 768px) {
    .bps-hero-title {
        font-size: 2.2rem !important;
    }

    .bps-hero-search .search-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .bps-hero-search .search-submit {
        width: 100%;
        padding: 15px;
    }
}