/*
Theme Name: Blogject Your Car
Author: PYC
Description: A custom theme for Blogject Your Car.
Version: 1.1.2
Text Domain: blogject
*/

:root {
    /* Color Palette */
    --color-black: #0D0A0B;
    --color-dark-grey: #24272B;
    --color-white: #FCFCFC;
    --color-off-white: #F8F4F9;

    /* Blues (Focus) */
    --color-blue-primary: #2E86AB;
    --color-blue-secondary: #247BA0;
    --color-dark-blue: #05299E;
    --color-navy: #153B60;

    /* Reds */
    --color-red-primary: #BB0A21;
    --color-red-secondary: #D10038;

    /* Fonts */
    --font-heading: 'Bebas Neue', display;
    --font-body: 'Lato', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-off-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: var(--color-blue-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Sticky */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background-color: #fff;
    border-bottom: 1px solid var(--color-dark-grey);
    backdrop-filter: blur(5px);
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Branding / Logo */
.site-branding a {
    display: block;
}

.site-branding img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Desktop Navigation */
.desktop-navigation {
    display: none;
}

.desktop-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.desktop-navigation a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--color-blue-primary);
    letter-spacing: 1px;
}

.desktop-navigation a:hover {
    color: var(--color-blue-secondary);
}

@media (min-width: 768px) {
    .desktop-navigation {
        display: block;
    }
}

/* Mobile Menu & Burger */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--color-blue-primary);
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (min-width: 768px) {
    .burger-menu {
        display: none;
    }
}

/* Mobile Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: var(--color-dark-grey);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 2rem;
}

.mobile-menu-drawer.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.mobile-menu-list li {
    margin-bottom: 1.5rem;
    text-align: center;
}

.mobile-menu-list a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    text-transform: uppercase;
}

.mobile-menu-list a:hover {
    color: var(--color-blue-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-blue-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
}

.btn:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/* Hero Banner (Front Page) */
.hero-banner {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--color-white);
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hero-intro p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section-recent-posts {
    padding: 4rem 0;
    background-color: var(--color-off-white);
}

.section-title {
    text-align: center;
    color: var(--color-blue-primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-categories {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.section-about {
    padding: 4rem 0;
    background-color: var(--color-off-white);
    color: var(--color-black);
    text-align: center;
}

.section-about h2 {
    color: var(--color-blue-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--color-blue-primary);
}

.post-content {
    padding: 1.5rem;
    color: var(--color-black);
}

.post-content h3 {
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.post-content h3 a {
    color: var(--color-black);
}

.post-content h3 a:hover {
    color: var(--color-blue-primary);
}

.read-more {
    font-family: var(--font-heading);
    margin-top: 1rem;
    display: inline-block;
    color: var(--color-blue-primary);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 Grid */
    }
}

.category-card {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: background 0.3s ease;
}

.category-card:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

.category-overlay {
    text-align: center;
    color: var(--color-white);
    z-index: 2;
    padding: 1rem;
    max-width: 80%;
}

.category-overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-desc {
    font-size: 1rem;
    color: var(--color-off-white);
    line-height: 1.4;
}

.category-desc p {
    margin: 0;
}

/* Page / Content Areas */
.main-content-area,
.page-content-area {
    padding: 4rem 1rem;
}

.blog-post-item {
    margin-bottom: 3rem;
}

.blog-post-item h2 a {
    color: var(--color-black);
}

.blog-post-item h2 a:hover {
    color: var(--color-blue-primary);
}

.post-meta {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-header {
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--color-blue-primary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Forms */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-body);
}

/* Footer */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.site-footer h3 {
    color: var(--color-blue-primary);
    letter-spacing: 1px;
}

/* Footer Social */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--color-black);
    background: var(--color-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--color-blue-primary);
    color: var(--color-white);
}

/* Footer Categories */
.footer-categories {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.footer-categories li {
    margin-bottom: 0.5rem;
}

.footer-categories a {
    color: var(--color-white);
}

.footer-categories a:hover {
    color: var(--color-blue-primary);
}

.copyright-strip {
    border-top: 1px solid var(--color-dark-grey);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Pagination */
.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ccc;
    background-color: var(--color-white);
    color: var(--color-black);
    border-radius: 5px;
    font-family: var(--font-heading);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--color-blue-primary);
    color: #fff;
    border-color: var(--color-blue-primary);
}

/* Single Post */
.single-hero-banner {
    height: 60vh;
}

.single-post-content {
    background-color: var(--color-white);
    max-width: 900px;
    margin: -4rem auto 4rem;
    position: relative;
    z-index: 10;
    padding: 3rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.single-post-meta-top {
    margin-bottom: 1rem;
}

.post-cat-link {
    background: var(--color-blue-primary);
    color: var(--color-white);
    padding: 5px 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    border-radius: 4px;
}

.post-cat-link:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.single-post-meta {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.single-post-meta span {
    margin: 0 10px;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-navigation a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}