/*
Theme Name: VIN Sticker Theme
Author: Your Name
Description: A custom theme for a VIN lookup website.
Version: 1.1
*/

/* --- Global & Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.content-area {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Header & Navigation (Layout Only) --- */
/* Colors and backgrounds are now controlled by the Customizer */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}
.site-title a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
.main-navigation a {
    text-decoration: none;
    font-weight: 500;
}
.main-navigation .current_page_item > a {
    font-weight: bold;
}


/* --- Full Width Layout --- */
body.layout-full-width .content-area {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
body.layout-full-width .site-main {
    margin: 0;
}
body.layout-full-width .vin-search-container {
    border-radius: 0;
}


/* --- VIN Search Form (front-page.php) --- */
.vin-search-container {
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    margin-bottom: 2rem;
}

.vin-search-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #111;
}

.vin-search-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 2rem;
}

.vin-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 50px;
}

.vin-search-form .search-field {
    flex-grow: 1;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
    height: 50px;
    background: transparent;
    border-radius: 50px 0 0 50px;
}
.vin-search-form .search-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0073aa;
}

.vin-search-form .search-submit {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 50px 50px 0;
    transition: background-color 0.2s;
}
.vin-search-form .search-submit:hover {
    background-color: #005a87;
}

/* --- Search Results (front-page.php) --- */
.results-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}
.search-result-item {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
}
.result-thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1.5rem;
}
.result-item-title {
    margin: 0 0 0.5rem 0;
}
.result-item-title a {
    text-decoration: none;
    color: #0073aa;
    font-size: 1.4rem;
}
.result-item-meta {
    color: #555;
    margin-bottom: 0.5rem;
}
.result-view-details {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}
.no-results {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* --- Single Car Details (single-car.php) --- */
.car-details-wrapper {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.car-details-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column for mobile */
    gap: 2rem;
    margin-top: 1.5rem;
}
@media (min-width: 768px) {
    .car-details-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
.car-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.car-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.car-specs li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.car-specs li:last-child {
    border-bottom: none;
}
.car-specs strong {
    display: inline-block;
    width: 150px;
    color: #555;
}
.window-sticker-section img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
}
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}