/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
/* Slim – Global Styles */ @import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&display=swap'); *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #14301f; --bg-card: #1c3f28; --bg-card2: #22502f; --green: #2e7d4f; --green-btn: #3aaa66; --green-btn-hover: #2e8f55; --text: #f0f7f2; --text-muted: #9ecfb0; --border: #2e5c3a; --accent: #5ddb8f; } html { scroll-behavior: smooth; font-family: 'Work Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 16px; } body { min-height: 100vh; } /* Progress bar */ .wp-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0%; z-index: 9999; transition: width 0.1s; } /* Header */ .wp-header { background: #0e2418; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; padding: 0 2rem; } .wp-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; } .wp-logo { font-size: 1.8rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; text-decoration: none; } .wp-nav { display: flex; gap: 1.5rem; } .wp-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; } .wp-nav a:hover { color: var(--accent); } /* Breadcrumbs */ .wp-breadcrumbs { max-width: 1200px; margin: 1rem auto 0; padding: 0 2rem; font-size: 0.8rem; color: var(--text-muted); } .wp-breadcrumbs a { color: var(--text-muted); text-decoration: none; } .wp-breadcrumbs a:hover { color: var(--accent); } .wp-breadcrumbs span { color: var(--accent); } /* Layout */ .wp-layout { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; } @media (max-width: 900px) { .wp-layout { grid-template-columns: 1fr; } .wp-sidebar { display: none; } } /* Hero */ .wp-hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 2rem; background: var(--bg-card); } .wp-hero-img { width: 100%; height: 550px; object-fit: cover; display: block; filter: brightness(0.75); } .wp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,36,24,0.95) 30%, transparent 70%); display: flex; flex-direction: direction; flex-direction: column; justify-content: flex-end; padding: 2rem; } .wp-rubric { display: inline-block; background: var(--green-btn); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 20px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; } .wp-hero-title { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 0.5rem; } .wp-meta { display: flex; align-items: center; gap: 1.25rem; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; } .wp-meta-icon { display: flex; align-items: center; gap: 0.3rem; } /* Article */ .wp-article { color: var(--text); } .wp-article .wp-lead { font-size: 1.15rem; line-height: 1.75; color: var(--accent); font-weight: 500; margin-bottom: 1.5rem; border-left: 4px solid var(--accent); padding-left: 1rem; } .wp-article p { font-size: 1rem; line-height: 1.8; color: #c9e8d4; margin-bottom: 1.25rem; } .wp-article h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 2rem 0 0.75rem; } .wp-article h3 { font-size: 1.15rem; font-weight: 600; color: var(--accent); margin: 1.5rem 0 0.5rem; } .wp-article blockquote { background: var(--bg-card); border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem; border-radius: 0 12px 12px 0; margin: 1.75rem 0; font-style: italic; font-size: 1.05rem; color: var(--text-muted); } .wp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; } .wp-tag { background: var(--bg-card2); color: var(--text-muted); font-size: 0.8rem; padding: 0.3rem 0.75rem; border-radius: 20px; text-decoration: none; border: 1px solid var(--border); transition: all 0.2s; } .wp-tag:hover { background: var(--green-btn); color: #fff; border-color: var(--green-btn); } /* Read also */ .wp-read-also { margin-top: 2.5rem; } .wp-read-also h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; } .wp-read-also-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; } .wp-read-also-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-decoration: none; transition: all 0.25s; display: block; } .wp-read-also-card:hover { border-color: var(--accent); background: var(--bg-card2); transform: translateY(-2px); } .wp-read-also-card .wp-card-tag { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; } .wp-read-also-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.4; } /* Sidebar */ .wp-sidebar {} .wp-sidebar-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-bottom: 1.75rem; } .wp-sidebar-box h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } .wp-sidebar-list { list-style: none; } .wp-sidebar-list li { border-bottom: 1px solid var(--border); padding: 0.6rem 0; } .wp-sidebar-list li:last-child { border-bottom: none; } .wp-sidebar-list a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; } .wp-sidebar-list a:hover { color: var(--accent); } /* Form / Subscribe */ .wp-form input[type='text'], .wp-form input[type='email'] { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 0.75rem 1rem; border-radius: 8px; font-family: 'Work Sans', sans-serif; font-size: 0.95rem; margin-bottom: 0.75rem; outline: none; transition: border 0.2s; } .wp-form input:focus { border-color: var(--accent); } .wp-form button, .wp-btn { background: var(--green-btn); color: #fff; font-family: 'Work Sans', sans-serif; font-size: 0.95rem; font-weight: 700; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; cursor: pointer; width: 100%; transition: background 0.2s; letter-spacing: 0.02em; } .wp-form button:hover, .wp-btn:hover { background: var(--green-btn-hover); } /* Cookie banner */ .wp-cookie { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: #0e2418; border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.75rem; max-width: 520px; width: calc(100% - 2rem); z-index: 9000; display: flex; align-items: center; gap: 1.25rem; box-shadow: 0 8px 32px rgba(0,0,0,0.5); } .wp-cookie p { font-size: 0.85rem; color: var(--text-muted); flex: 1; } .wp-cookie-btn { background: var(--green-btn); color: #fff; border: none; padding: 0.6rem 1.25rem; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: 'Work Sans', sans-serif; white-space: nowrap; transition: background 0.2s; } .wp-cookie-btn:hover { background: var(--green-btn-hover); } /* Footer */ .wp-footer { background: #0a1a10; border-top: 1px solid var(--border); margin-top: 4rem; padding: 2.5rem 2rem 1.5rem; } .wp-footer-inner { max-width: 1200px; margin: 0 auto; } .wp-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; } @media (max-width: 700px) { .wp-footer-top { grid-template-columns: 1fr; } } .wp-footer-logo { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin-bottom: 0.5rem; } .wp-footer-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; } .wp-footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; } .wp-footer-col ul { list-style: none; } .wp-footer-col ul li { margin-bottom: 0.4rem; } .wp-footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; } .wp-footer-col ul li a:hover { color: var(--accent); } .wp-footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; gap: 0.5rem; } .wp-footer-bottom p { font-size: 0.8rem; color: var(--text-muted); } .wp-disclaimer { font-size: 0.75rem; color: #6b9b7e; font-style: italic; } /* Policy pages */ .wp-policy-wrap { max-width: 800px; margin: 2.5rem auto; padding: 0 2rem; } .wp-policy-wrap h1 { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; } .wp-policy-wrap .wp-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; } .wp-policy-wrap h2 { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin: 1.75rem 0 0.5rem; } .wp-policy-wrap p { font-size: 0.95rem; line-height: 1.75; color: #c0dfc9; margin-bottom: 1rem; } /* Success page */ .wp-success-wrap { max-width: 600px; margin: 5rem auto; padding: 0 2rem; text-align: center; } .wp-success-icon { font-size: 4rem; margin-bottom: 1rem; } .wp-success-wrap h1 { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 1rem; } .wp-success-wrap p { color: var(--text-muted); line-height: 1.7; } .wp-back-btn { display: inline-block; margin-top: 2rem; background: var(--green-btn); color: #fff; padding: 0.75rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; transition: background 0.2s; } .wp-back-btn:hover { background: var(--green-btn-hover); }