/* --- 1. RESET & VARIABLES --- */
:root {
    --primary-dark: #24272c;
    --secondary-dark: #2c3e50;
    --accent-orange: #ff5722;
    --soft-bg: #f4f7f8;
    --white: #ffffff;
    --shadow-card: 0 4px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background-color: var(--soft-bg); color: var(--primary-dark); display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }

/* --- 2. HEADER --- */
.header { background: var(--white); height: 70px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-left { display: flex; align-items: center; gap: 15px; }
.menu-btn { display: none; font-size: 24px; background: none; border: none; cursor: pointer; color: var(--primary-dark); }
.logo { font-size: 22px; font-weight: 700; color: var(--primary-dark); white-space: nowrap; text-decoration: none; }
.logo span { color: var(--accent-orange); }
.global-search { background: #f0f2f5; padding: 8px 15px; border-radius: 30px; display: flex; align-items: center; width: 350px; border: 1px solid transparent; transition: var(--transition); }
.global-search:focus-within { border-color: var(--accent-orange); background: white; }
.global-search input { border: none; background: transparent; width: 100%; padding-left: 10px; outline: none; font-size: 14px; }
.global-search button { border: none; background: transparent; color: #666; cursor: pointer; }

/* --- 3. LAYOUT & SIDEBAR --- */
.main-container { display: flex; flex: 1; position: relative; }
.sidebar { width: 260px; background: var(--white); border-right: 1px solid #eceff1; padding: 20px 0; flex-shrink: 0; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.side-nav h3 { padding: 0 25px 10px; color: #90a4ae; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 15px; }
.side-nav a { display: flex; align-items: center; padding: 14px 25px; text-decoration: none; color: #555; font-weight: 500; transition: var(--transition); border-left: 4px solid transparent; }
.side-nav a:hover, .side-nav a.active { background-color: #fff3e0; color: var(--accent-orange); border-left-color: var(--accent-orange); }
.side-nav a i { width: 30px; font-size: 18px; color: #78909c; }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 900; }

/* --- 4. CONTENT --- */
.content { padding: 30px; width: 100%; max-width: 1200px; margin: 0 auto; }
section { margin-bottom: 50px; scroll-margin-top: 90px; }
.section-title { font-size: 22px; margin-bottom: 25px; border-left: 5px solid var(--accent-orange); padding-left: 15px; color: var(--primary-dark); font-weight: 700; }

/* --- 5. TAPS & SEARCH HERO --- */
.scroll-taps-container { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 15px; scrollbar-width: none; }
.scroll-taps-container::-webkit-scrollbar { display: none; } /* Hide for chrome */
.tap-item { min-width: 260px; height: 150px; border-radius: 12px; display: flex; align-items: flex-end; padding: 20px; color: white; box-shadow: var(--shadow-card); cursor: pointer; transition: transform 0.3s; position: relative; overflow: hidden; }
.tap-item:hover { transform: translateY(-5px); }
.tap-text { position: relative; z-index: 2; font-size: 18px; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

.search-hero-card { background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%); border-radius: 16px; padding: 40px; color: white; box-shadow: var(--shadow-card); }
.search-box-internal { background: white; padding: 20px; border-radius: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-top: 20px; align-items: end; }
select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; outline: none; background: white; }
.cta-button { background-color: var(--accent-orange); color: white; padding: 12px 30px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.3s; width: 100%; text-align: center; display: inline-block; text-decoration: none;}
.cta-button:hover { background-color: #e64a19; }

/* --- 6. FUEL TOOLS --- */
.fuel-layout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.card-panel { background: white; padding: 25px; border-radius: 12px; box-shadow: var(--shadow-card); }
.card-panel h3 { margin-bottom: 20px; font-size: 18px; color: var(--secondary-dark); }
input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 6px; outline: none; }

/* --- 7. INNOVATIVE MEDIA SECTION (UPDATED) --- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; }
.media-card-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 15px; color: #444; }

/* 4-Box News Grid */
.news-box-container { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px; gap: 10px; }
.news-box { 
    position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.news-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-box:hover img { transform: scale(1.1); }
.news-overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); 
    padding: 15px; color: white; 
}
.news-tag { 
    font-size: 10px; background: var(--accent-orange); padding: 3px 8px; 
    border-radius: 4px; display: inline-block; margin-bottom: 5px; 
}
.news-headline { font-size: 12px; font-weight: 600; line-height: 1.4; }

/* YouTube Container */
.video-wrapper { 
    background: white; border-radius: 12px; padding: 15px; box-shadow: var(--shadow-card); 
    display: flex; flex-direction: column; gap: 15px;
}
.yt-frame { width: 100%; aspect-ratio: 16/9; border-radius: 8px; border: none; }
.channel-link { text-decoration: none; color: #333; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; margin-top: 5px;}
.channel-link:hover { color: var(--accent-orange); }

/* Social Grid */
.social-wrapper { background: white; border-radius: 12px; padding: 20px; box-shadow: var(--shadow-card); }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 15px; }
.insta-item { aspect-ratio: 1/1; background: #eee; overflow: hidden; border-radius: 4px; cursor: pointer; position: relative;}
.insta-item img { width: 100%; height: 100%; object-fit: cover; }
.insta-item:hover { opacity: 0.8; }
.follow-btn { 
    background: #E1306C; color: white; width: 100%; padding: 10px; border: none; 
    border-radius: 6px; font-weight: 600; margin-top: 15px; cursor: pointer; 
}

/* --- 8. FOOTER --- */
.footer { background-color: var(--primary-dark); color: #b0bec5; padding: 60px 30px 30px; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #b0bec5; text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-col ul li a:hover { color: var(--accent-orange); padding-left: 5px; }
.footer-bottom { max-width: 1200px; margin: 20px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.social-links a { color: white; margin-left: 15px; font-size: 18px; transition: 0.3s; }
.social-links a:hover { color: var(--accent-orange); }

/* --- 9. LISTING & DETAIL SPECIFIC --- */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.vehicle-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.3s; display: flex; flex-direction: column; }
.vehicle-card:hover { transform: translateY(-5px); }
.vehicle-img-container { height: 180px; overflow: hidden; position: relative; background: #eee; }
.vehicle-img-container img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.vehicle-brand { font-size: 12px; color: #777; font-weight: 600; text-transform: uppercase; }
.vehicle-name { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin: 5px 0; }
.vehicle-price { font-size: 16px; color: var(--accent-orange); font-weight: 700; margin-bottom: 10px; }
.vehicle-features { font-size: 13px; color: #555; margin-bottom: 15px; display: flex; gap: 10px; flex-wrap: wrap; }
.vehicle-feature-item { background: #f5f5f5; padding: 4px 8px; border-radius: 4px; }
.view-btn-container { margin-top: auto; }
.view-btn { width: 100%; padding: 10px; background: var(--secondary-dark); color: white; border: none; border-radius: 6px; font-weight: 500; cursor: pointer; transition: 0.2s; }
.view-btn:hover { background: var(--accent-orange); }

/* Detail Page specific */
.detail-header { background: white; padding: 20px; border-radius: 12px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.gallery-main { height: 400px; border-radius: 12px; overflow: hidden; margin-bottom: 15px; box-shadow: var(--shadow-card); background: #eee; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.thumb-item { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.7; transition: 0.2s; }
.thumb-item.active, .thumb-item:hover { border-color: var(--accent-orange); opacity: 1; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.spec-card { background: white; padding: 25px; border-radius: 12px; box-shadow: var(--shadow-card); }
.spec-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.price-large { font-size: 28px; color: var(--accent-orange); font-weight: 700; margin-bottom: 20px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.spec-item { padding: 10px; background: #f9f9f9; border-radius: 8px; }
.spec-label { font-size: 12px; color: #888; display: block; margin-bottom: 4px; }
.spec-value { font-size: 14px; font-weight: 600; color: #333; }

/* Filter Sidebar */
.filter-group { margin-bottom: 20px; }
.filter-title { font-weight: 600; margin-bottom: 10px; display: block; }
.filter-label { display: flex; align-items: center; margin-bottom: 8px; cursor: pointer; font-size: 14px; color: #555; }
.filter-label input { width: auto; margin: 0 10px 0 0; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .menu-btn { display: block; }
    .sidebar { position: fixed; left: -280px; top: 70px; height: calc(100vh - 70px); z-index: 1001; transition: left 0.3s ease; box-shadow: 2px 0 10px rgba(0,0,0,0.2); }
    .sidebar.active { left: 0; }
    .sidebar-overlay.active { display: block; }
    .global-search { display: none; }
    .content { padding: 20px 15px; }
    .news-box-container { grid-template-columns: 1fr; grid-template-rows: repeat(4, 180px); }
    .footer-bottom { justify-content: center; text-align: center; }
    .detail-grid { grid-template-columns: 1fr; }
    .gallery-main { height: 300px; }
}
@media (max-width: 480px) {
    .media-grid { grid-template-columns: 1fr; }
    .search-hero-card { padding: 20px; }
    .tap-item { min-width: 220px; height: 120px; }
}
