/* ============================================
   NOBLE.PARTS - Page-Specific Styles
   Premium Component Library
   ============================================ */

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

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

.product-main-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.6s var(--ease-out-expo);
}

.product-main-image:hover {
    transform: scale(1.05);
}

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

.product-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    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);
    box-shadow: 0 0 20px rgba(232, 224, 0, 0.2);
}

.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);
    letter-spacing: -0.02em;
}

.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: var(--glass-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.product-highlight:hover {
    border-color: rgba(232, 224, 0, 0.3);
    transform: translateY(-4px);
}

.product-highlight-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--noble-yellow) 0%, var(--noble-yellow-dark) 100%);
    color: var(--darker);
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
}

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

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

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.specs-table tr {
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-fast);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:hover {
    background: rgba(232, 224, 0, 0.03);
}

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

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

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

/* Related Products */
.related-products {
    margin-top: var(--space-20);
    padding-top: var(--space-16);
    border-top: 1px solid var(--glass-border);
}

/* ============================================
   Quote Page / Car Service
   ============================================ */
.quote-hero {
    background: linear-gradient(
        180deg,
        var(--darker) 0%,
        var(--charcoal) 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: 150%;
    height: 100%;
    background: radial-gradient(
        ellipse 50% 80% at center,
        rgba(232, 224, 0, 0.08) 0%,
        transparent 60%
    );
}

.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-10);
    background: linear-gradient(
        160deg,
        rgba(44, 44, 46, 0.8) 0%,
        rgba(28, 28, 30, 0.95) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.quote-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.quote-form-header {
    text-align: center;
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--glass-border);
}

.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: var(--font-mono);
    font-size: var(--text-lg);
    letter-spacing: 0.15em;
    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;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--noble-yellow), var(--glass-border), var(--noble-yellow));
    z-index: 0;
}

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

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

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--noble-yellow) 0%, var(--noble-yellow-dark) 100%);
    color: var(--darker);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 900;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(232, 224, 0, 0.3);
}

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

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

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

.agent-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(232, 224, 0, 0.04) 1px, transparent 0);
    background-size: 40px 40px;
}

.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(
        160deg,
        rgba(44, 44, 46, 0.6) 0%,
        rgba(28, 28, 30, 0.9) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--noble-yellow), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.benefit-card:hover {
    border-color: rgba(232, 224, 0, 0.4);
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-2xl);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--noble-yellow) 0%, var(--noble-yellow-dark) 100%);
    color: var(--darker);
    font-size: var(--text-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    box-shadow: 0 8px 24px rgba(232, 224, 0, 0.2);
}

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

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

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

.territory-map {
    max-width: 100%;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
}

.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-5);
    background: rgba(232, 224, 0, 0.08);
    border: 1px solid rgba(232, 224, 0, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--noble-yellow);
    transition: all var(--transition-base);
}

.territory-tag:hover {
    background: var(--noble-yellow);
    color: var(--darker);
    transform: scale(1.05);
}

/* Agent Application Form */
.agent-form {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-10);
    background: linear-gradient(
        160deg,
        rgba(44, 44, 46, 0.7) 0%,
        rgba(28, 28, 30, 0.95) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3xl);
    backdrop-filter: blur(20px);
}

.form-section {
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid var(--glass-border);
}

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

.form-section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--noble-yellow);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--noble-yellow);
    border-radius: var(--radius-full);
}

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

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(232, 224, 0, 0.06) 0%, transparent 60%);
}

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

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-10) - 6px);
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--noble-yellow);
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(232, 224, 0, 0.4);
}

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

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

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

/* 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: var(--glass-bg);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: rgba(232, 224, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.value-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    display: inline-block;
    transition: transform var(--transition-base);
}

.value-card:hover .value-icon {
    transform: scale(1.2);
}

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

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

.contact-info-card {
    padding: var(--space-8);
    background: linear-gradient(
        160deg,
        rgba(44, 44, 46, 0.6) 0%,
        rgba(28, 28, 30, 0.9) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

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

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--noble-yellow) 0%, var(--noble-yellow-dark) 100%);
    color: var(--darker);
    border-radius: var(--radius-xl);
    font-size: var(--text-xl);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(232, 224, 0, 0.2);
}

.contact-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.contact-value a {
    transition: color var(--transition-fast);
}

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

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

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    filter: grayscale(0.8) contrast(1.1);
    transition: filter var(--transition-base);
}

.map-container:hover iframe {
    filter: grayscale(0) contrast(1);
}

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

.products-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(232, 224, 0, 0.06) 0%, transparent 60%);
}

.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: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--gray-300);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--noble-yellow);
    color: var(--noble-yellow);
}

.filter-btn.active {
    background: var(--noble-yellow);
    border-color: var(--noble-yellow);
    color: var(--darker);
}

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

.products-search input {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    padding-left: var(--space-12);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.products-search input:focus {
    outline: none;
    border-color: var(--noble-yellow);
    box-shadow: 0 0 0 3px rgba(232, 224, 0, 0.1);
}

.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 {
    transition: color var(--transition-fast);
}

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

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

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

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

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 224, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 100%, rgba(232, 224, 0, 0.04) 0%, transparent 50%);
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.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;
    line-height: 1.7;
}

/* ============================================
   Alert Messages
   ============================================ */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

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

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

/* ============================================
   Loading States
   ============================================ */
.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--noble-yellow);
    border-radius: var(--radius-full);
    animation: spinLoader 0.8s linear infinite;
}

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

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--noble-yellow);
    border-radius: var(--radius-full);
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--noble-yellow) 0%, var(--noble-yellow-dark) 100%);
    color: var(--darker);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(232, 224, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    cursor: pointer;
    z-index: var(--z-sticky);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(232, 224, 0, 0.4);
}

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

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

.file-upload-content {
    padding: var(--space-10);
    text-align: center;
}

.file-upload-content p {
    margin: 0;
}

.file-list {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.file-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.file-icon {
    font-size: var(--text-xl);
}

.file-name {
    flex: 1;
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.file-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-xs);
    transition: all var(--transition-fast);
}

.file-remove:hover {
    background: var(--error);
    color: var(--white);
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-6);
    opacity: 0.5;
}

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

.empty-state-description {
    color: var(--gray-400);
    margin-bottom: var(--space-6);
}

/* ============================================
   Tooltips
   ============================================ */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: var(--space-2) var(--space-4);
    background: var(--surface-elevated);
    color: var(--white);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Badge
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--noble-yellow);
    color: var(--darker);
}

.badge-secondary {
    background: var(--glass-bg);
    color: var(--gray-300);
    border: 1px solid var(--glass-border);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* ============================================
   Dividers
   ============================================ */
.divider {
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-8) 0;
}

.divider-gradient {
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.divider-accent {
    background: linear-gradient(90deg, transparent, var(--noble-yellow), transparent);
}

/* ============================================
   Blog Styles
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Featured Blog Card */
.featured-blog-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.featured-blog-card:hover {
    border-color: rgba(232, 224, 0, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.featured-blog-image {
    position: relative;
    min-height: 300px;
    background: var(--charcoal);
    overflow: hidden;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-blog-content {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-blog-content h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    line-height: 1.3;
}

.featured-blog-content h2 a {
    transition: color var(--transition-fast);
}

.featured-blog-content h2 a:hover {
    color: var(--noble-yellow);
}

.featured-blog-content p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

/* Blog Card */
.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.blog-card:hover {
    border-color: rgba(232, 224, 0, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.blog-card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--darker) 100%);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(232,224,0,0.05) 0%, transparent 100%);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
}

.blog-category-tag {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: var(--noble-yellow);
    color: var(--darker);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    z-index: 1;
}

.blog-card-content {
    padding: var(--space-6);
}

.blog-card-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.blog-card-content h3 a {
    transition: color var(--transition-fast);
}

.blog-card-content h3 a:hover {
    color: var(--noble-yellow);
}

.blog-card-content p {
    color: var(--gray-400);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.blog-date, .blog-read-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--noble-yellow);
    transition: gap var(--transition-base);
}

.blog-read-more:hover {
    gap: var(--space-3);
}

.blog-read-more span {
    transition: transform var(--transition-base);
}

.blog-read-more:hover span {
    transform: translateX(4px);
}

/* Blog Post Page Styles */
.blog-post-header {
    padding: calc(100px + var(--space-12)) 0 var(--space-8);
    background: linear-gradient(180deg, var(--darker) 0%, var(--charcoal) 100%);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.blog-post-category {
    padding: var(--space-1) var(--space-3);
    background: var(--noble-yellow);
    color: var(--darker);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-md);
}

.blog-post-date, .blog-post-read-time {
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.blog-post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--space-6);
}

.blog-post-excerpt {
    font-size: var(--text-lg);
    color: var(--gray-300);
    line-height: 1.7;
    max-width: 700px;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
}

.blog-post-content h2 {
    font-size: var(--text-2xl);
    margin: var(--space-10) 0 var(--space-4);
    color: var(--noble-yellow);
}

.blog-post-content h3 {
    font-size: var(--text-xl);
    margin: var(--space-8) 0 var(--space-3);
}

.blog-post-content p {
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.blog-post-content ul, .blog-post-content ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-6);
}

.blog-post-content li {
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: var(--space-3);
    position: relative;
}

.blog-post-content ul li::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    color: var(--noble-yellow);
}

.blog-post-content ol {
    counter-reset: item;
    list-style: none;
}

.blog-post-content ol li {
    counter-increment: item;
}

.blog-post-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: -1.5rem;
    color: var(--noble-yellow);
    font-weight: 600;
}

.blog-post-content blockquote {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    background: var(--glass-bg);
    border-left: 4px solid var(--noble-yellow);
    border-radius: var(--radius-lg);
}

.blog-post-content blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--gray-200);
}

.blog-post-content strong {
    color: var(--white);
    font-weight: 600;
}

/* Related Posts */
.related-posts {
    padding: var(--space-12) 0;
    background: var(--darker);
}

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

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

/* Blog CTA Box */
.blog-cta-box {
    background: linear-gradient(135deg, rgba(232,224,0,0.1) 0%, var(--glass-bg) 100%);
    border: 1px solid rgba(232,224,0,0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin: var(--space-10) 0;
    text-align: center;
}

.blog-cta-box h3 {
    margin-bottom: var(--space-3);
}

.blog-cta-box p {
    margin-bottom: var(--space-6);
}

/* ============================================
   Mobile Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    .product-highlights {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6) 0;
    }
    
    .contact-item:hover {
        transform: translateX(0) translateY(-4px);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        text-align: center;
    }
    
    .benefit-icon {
        margin: 0 auto var(--space-6);
    }
}
