/* ==========================================
   JLR Engineering — Content Pages CSS
   JLR Dark Green + Gold Accent Theme
   ========================================== */

:root {
    --jlr-dark: #0A1F15;
    --jlr-medium: #1A3A2A;
    --jlr-light: #2A5A3A;
    --jlr-gold: #C8A645;
    --jlr-gold-light: #E8C665;
    --jlr-text: #E5E5E5;
    --jlr-text-muted: #A5A5A5;
    --jlr-bg: #0F0F0F;
    --jlr-card-bg: #1A1A1A;
    --jlr-border: #2A2A2A;
    --jlr-success: #4CAF50;
    --jlr-warning: #FF9800;
    --jlr-error: #F44336;
}

/* Base Typography */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--jlr-bg);
    color: var(--jlr-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    border-bottom: 1px solid var(--jlr-border);
    margin-bottom: 2rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--jlr-text-muted);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--jlr-gold);
}

.breadcrumb a {
    color: var(--jlr-gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Headers */
.page-header, .hub-header, .post-header, .product-header {
    background: linear-gradient(135deg, var(--jlr-dark) 0%, var(--jlr-medium) 100%);
    border: 1px solid var(--jlr-border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.page-header h1, .hub-header h1, .post-header h1, .product-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--jlr-gold);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.page-header .lead, .hub-header .lead, .product-header .lead {
    font-size: 1.125rem;
    color: var(--jlr-text-muted);
    margin: 0 0 1.5rem 0;
    max-width: 700px;
}

/* CTA Bar */
.cta-bar, .hero-cta, .cta-buttons, .buy-buttons, .cta-box {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-buy {
    display: inline-block;
    background: linear-gradient(135deg, var(--jlr-gold) 0%, var(--jlr-gold-light) 100%);
    color: var(--jlr-dark);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover, .btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 166, 69, 0.3);
}

.btn-secondary, .btn-wishlist {
    display: inline-block;
    background: transparent;
    color: var(--jlr-gold);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--jlr-gold);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover, .btn-wishlist:hover {
    background: var(--jlr-gold);
    color: var(--jlr-dark);
}

/* Content Sections */
section {
    background: var(--jlr-card-bg);
    border: 1px solid var(--jlr-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

section h2 {
    font-size: 1.75rem;
    color: var(--jlr-gold);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--jlr-border);
}

section h3 {
    font-size: 1.25rem;
    color: var(--jlr-text);
    margin: 1.5rem 0 0.75rem 0;
}

section p {
    margin: 0 0 1rem 0;
    color: var(--jlr-text);
}

section ul, section ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

section li {
    margin-bottom: 0.5rem;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--jlr-border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--jlr-success);
    font-weight: bold;
    flex-shrink: 0;
}

/* Benefits Grid */
.benefits-grid, .spoke-grid, .link-grid, .review-grid, .pricing-cards, .post-grid, .product-grid, .hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-card, .spoke-card, .related-link, .review-card, .pricing-card, .post-card, .product-card, .hub-card {
    background: var(--jlr-dark);
    border: 1px solid var(--jlr-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.benefit-card:hover, .spoke-card:hover, .related-link:hover, .review-card:hover, .pricing-card:hover, .post-card:hover, .product-card:hover, .hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--jlr-gold);
}

.benefit-card h3, .spoke-card h3, .related-link h3, .review-card h3, .pricing-card h3, .post-card h3, .product-card h3, .hub-card h3 {
    color: var(--jlr-gold);
    font-size: 1.125rem;
    margin: 0 0 0.75rem 0;
}

.benefit-card p, .spoke-card p, .related-link p, .review-card p, .pricing-card p, .post-card p, .product-card p, .hub-card p {
    color: var(--jlr-text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* Spoke Cards */
.spoke-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.spoke-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--jlr-gold);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Process Steps */
.process-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.process-steps li {
    padding: 1.25rem 0 1.25rem 3rem;
    border-bottom: 1px solid var(--jlr-border);
    position: relative;
}

.process-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 2rem;
    height: 2rem;
    background: var(--jlr-gold);
    color: var(--jlr-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Vehicle List */
.vehicle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
}

.vehicle-list li {
    padding: 0.75rem 1rem;
    background: var(--jlr-dark);
    border-radius: 6px;
    border: 1px solid var(--jlr-border);
}

/* FAQ Section */
.faq-grid, .faq-section {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--jlr-dark);
    border: 1px solid var(--jlr-border);
    border-radius: 8px;
    padding: 1.25rem;
}

.faq-item h3 {
    color: var(--jlr-gold);
    font-size: 1.125rem;
    margin: 0 0 0.75rem 0;
}

.faq-item p {
    color: var(--jlr-text-muted);
    margin: 0;
}

/* Pricing Section */
.pricing-intro {
    color: var(--jlr-text-muted);
    font-size: 1.0625rem;
}

.pricing-card.featured {
    border: 2px solid var(--jlr-gold);
    position: relative;
}

.pricing-card.featured::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jlr-gold);
    color: var(--jlr-dark);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--jlr-gold);
    margin: 0.5rem 0;
}

.pricing-card .rrp {
    font-size: 1.125rem;
    color: var(--jlr-text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.pricing-card .saving {
    color: var(--jlr-success);
    font-weight: 600;
    font-size: 0.875rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--jlr-border);
    color: var(--jlr-text-muted);
    font-size: 0.9375rem;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--jlr-success);
    margin-right: 0.5rem;
}

/* Product Page */
.product-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-images .main-image {
    background: var(--jlr-dark);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.product-images .main-image img {
    max-width: 100%;
    height: auto;
}

.product-badge {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.product-badge span {
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-in-stock {
    background: var(--jlr-success);
    color: white;
}

.badge-shipping {
    background: var(--jlr-medium);
    color: var(--jlr-gold);
    border: 1px solid var(--jlr-gold);
}

.badge-warranty {
    background: var(--jlr-medium);
    color: var(--jlr-text);
    border: 1px solid var(--jlr-border);
}

.price-block {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--jlr-dark);
    border-radius: 8px;
    border: 1px solid var(--jlr-border);
}

.price-block .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--jlr-gold);
    margin: 0;
}

.price-block .rrp {
    font-size: 1.5rem;
    color: var(--jlr-text-muted);
    text-decoration: line-through;
}

.price-block .saving {
    color: var(--jlr-success);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--jlr-border);
}

th {
    background: var(--jlr-dark);
    color: var(--jlr-gold);
    font-weight: 600;
}

td {
    color: var(--jlr-text);
}

tr:hover td {
    background: var(--jlr-dark);
}

.compat-yes {
    color: var(--jlr-success);
    font-weight: 600;
}

.compat-no {
    color: var(--jlr-error);
}

.compat-partial {
    color: var(--jlr-warning);
}

/* Comparison Table */
.comparison-table th:first-child {
    width: 30%;
}

.comparison-table td:nth-child(2) {
    color: var(--jlr-text-muted);
}

.comparison-table td:nth-child(3) {
    color: var(--jlr-success);
    font-weight: 600;
}

/* Reviews */
.review-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--jlr-gold);
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.rating {
    color: var(--jlr-text-muted);
    font-size: 0.9375rem;
}

.review-card {
    background: var(--jlr-dark);
}

.review-card p:first-child {
    font-style: italic;
    color: var(--jlr-text);
    margin-bottom: 1rem;
}

.reviewer {
    color: var(--jlr-gold);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--jlr-text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Read Time */
.read-time::before {
    content: '⏱';
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--jlr-dark) 0%, var(--jlr-medium) 100%);
    border: 2px solid var(--jlr-gold);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.cta-box .btn-primary, .cta-box .btn-secondary {
    margin: 0.5rem;
}

/* Related Content Section */
.related-content {
    background: var(--jlr-dark);
    border: 1px solid var(--jlr-border);
    border-radius: 12px;
    padding: 2rem;
}

.related-content h2 {
    color: var(--jlr-gold);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .page-header h1, .hub-header h1, .post-header h1, .product-header h1 {
        font-size: 1.75rem;
    }
    
    .product-overview {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid, .spoke-grid, .link-grid, .review-grid, .pricing-cards, .post-grid, .product-grid, .hub-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-bar, .hero-cta, .cta-buttons, .buy-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary, .btn-buy, .btn-wishlist {
        width: 100%;
        text-align: center;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* Site Header (shared with main site) */
.site-header {
    background: var(--jlr-dark);
    border-bottom: 1px solid var(--jlr-border);
    padding: 0 1.5rem;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--jlr-gold);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--jlr-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--jlr-gold);
}

/* Site Footer (shared with main site) */
.site-footer {
    background: var(--jlr-dark);
    border-top: 1px solid var(--jlr-border);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-content h3, .footer-content h4 {
    color: var(--jlr-gold);
    margin-bottom: 1rem;
}

.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-content a {
    color: var(--jlr-text-muted);
    text-decoration: none;
}

.footer-content a:hover {
    color: var(--jlr-gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jlr-border);
    text-align: center;
    color: var(--jlr-text-muted);
    font-size: 0.875rem;
}

/* Hero Section (index page) */
.hero {
    background: linear-gradient(135deg, var(--jlr-dark) 0%, var(--jlr-medium) 100%);
    border: 1px solid var(--jlr-border);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--jlr-gold);
    margin: 0 0 1rem 0;
}

.hero .lead {
    font-size: 1.125rem;
    color: var(--jlr-text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles */
a:focus, button:focus {
    outline: 2px solid var(--jlr-gold);
    outline-offset: 2px;
}
