/* ============================================
   Page-Specific Styles
   ============================================ */

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
    padding-top: 100px;
}

.product-gallery {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
}

.product-main-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-6);
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    object-fit: contain;
    padding: var(--space-2);
    background: rgba(255, 255, 255, 0.02);
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--noble-yellow);
}

.product-info {
    padding: var(--space-8);
}

.product-info .product-category {
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.product-info .product-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
}

.product-description {
    color: var(--gray-400);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    line-height: 1.8;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.product-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
}

.product-highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--noble-yellow);
    color: var(--dark-slate);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
}

.product-highlight-text {
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Specifications Table */
.specs-section {
    margin-top: var(--space-12);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-table th,
.specs-table td {
    padding: var(--space-4);
    text-align: left;
}

.specs-table th {
    font-weight: 500;
    color: var(--gray-400);
    width: 40%;
}

.specs-table td {
    color: var(--white);
}

/* Related Products */
.related-products {
    margin-top: var(--space-16);
    padding-top: var(--space-12);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Car Service / Quote Page
   ============================================ */
.quote-hero {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark-slate) 100%);
    padding: var(--space-24) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--noble-yellow-glow) 0%, transparent 70%);
    opacity: 0.3;
}

.quote-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-8);
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.9), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
}

.quote-form-header {
    text-align: center;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-form-header h3 {
    margin-bottom: var(--space-2);
}

.quote-form-header p {
    color: var(--gray-400);
}

.vin-input-group {
    position: relative;
    margin-bottom: var(--space-6);
}

.vin-input {
    font-family: monospace;
    font-size: var(--text-lg);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.vin-help {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* How It Works */
.how-it-works {
    margin-top: var(--space-16);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--noble-yellow);
    color: var(--dark-slate);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.step-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.step-description {
    color: var(--gray-400);
    font-size: var(--text-sm);
}

/* ============================================
   Become an Agent Page
   ============================================ */
.agent-hero {
    background: linear-gradient(135deg, var(--darker) 0%, var(--charcoal) 100%);
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

.agent-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23DCFF00' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

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

.benefit-card {
    padding: var(--space-8);
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.9), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: var(--noble-yellow);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--noble-yellow) 0%, var(--noble-yellow-dark) 100%);
    color: var(--dark-slate);
    font-size: var(--text-2xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.benefit-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.benefit-description {
    color: var(--gray-400);
    font-size: var(--text-sm);
}

/* Territory Map Placeholder */
.territory-section {
    text-align: center;
}

.territory-map {
    max-width: 100%;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.territories-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-8);
}

.territory-tag {
    padding: var(--space-2) var(--space-4);
    background: rgba(220, 255, 0, 0.1);
    border: 1px solid var(--noble-yellow);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--noble-yellow);
}

/* Agent Application Form */
.agent-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8);
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.9), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
}

.form-section {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    color: var(--noble-yellow);
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
    padding: var(--space-24) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark-slate) 100%);
}

.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--noble-yellow) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-8);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-8) - 5px);
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--noble-yellow);
    border-radius: var(--radius-full);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--noble-yellow);
    margin-bottom: var(--space-2);
}

.timeline-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.timeline-description {
    color: var(--gray-400);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

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

.value-card {
    text-align: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.value-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-card {
    padding: var(--space-8);
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.9), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--noble-yellow);
    color: var(--dark-slate);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.contact-label {
    font-size: var(--text-sm);
    color: var(--gray-400);
    margin-bottom: var(--space-1);
}

.contact-value {
    font-size: var(--text-lg);
    font-weight: 500;
}

.contact-value a:hover {
    color: var(--noble-yellow);
}

/* Map Container */
.map-container {
    margin-top: var(--space-8);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* ============================================
   Products Listing Page
   ============================================ */
.products-hero {
    padding: var(--space-16) 0;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark-slate) 100%);
    text-align: center;
}

.products-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-12);
}

.filter-btn {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--gray-300);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--noble-yellow);
    border-color: var(--noble-yellow);
    color: var(--dark-slate);
}

/* Search */
.products-search {
    max-width: 500px;
    margin: 0 auto var(--space-8);
    position: relative;
}

.products-search input {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    padding-left: var(--space-12);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--text-base);
}

.products-search input:focus {
    outline: none;
    border-color: var(--noble-yellow);
}

.products-search-icon {
    position: absolute;
    left: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.breadcrumb a:hover {
    color: var(--noble-yellow);
}

.breadcrumb-separator {
    color: var(--gray-600);
}

.breadcrumb-current {
    color: var(--white);
}

/* ============================================
   Page Header (Internal Pages)
   ============================================ */
.page-header {
    padding: calc(80px + var(--space-12)) 0 var(--space-12);
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark-slate) 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-4);
}

.page-header p {
    color: var(--gray-400);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Success/Error Messages
   ============================================ */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ============================================
   Loading States
   ============================================ */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--noble-yellow);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--noble-yellow);
    color: var(--dark-slate);
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    z-index: var(--z-sticky);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   File Upload Component
   ============================================ */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--noble-yellow);
    background: rgba(220, 255, 0, 0.05);
}

.file-upload-content {
    padding: 2.5rem;
    text-align: center;
}

.file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.file-icon {
    font-size: 1.25rem;
}

.file-name {
    flex: 1;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.file-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: #ef4444;
    color: white;
}