/* ============================================================
   ICD EOSL Database - Styles v1.0
   Brand Colors: Purple var(--icd-accent), Black #000, Cream var(--icd-tint), White #FFF
   Matches Parts Finder design system exactly
   ============================================================ */

/* Hide WooCommerce cart drawer on EOSL pages */
body.eosl-db-page #shoptimizerCartDrawer,
body.eosl-db-page .shoptimizer-mini-cart-wrap,
body.eosl-db-page .woocommerce-breadcrumb {
    display: none !important;
}

/* Layout */
body.eosl-db-page .content-area { width: 100% !important; float: none !important; }
.eosl-page { padding-bottom: 60px; }
.eosl-page .col-full { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumbs (same as PF) */
.eosl-breadcrumbs { padding: 15px 0; font-size: 13px; color: #666; }
.eosl-breadcrumbs a { color: #333; text-decoration: none; }
.eosl-breadcrumbs a:hover { color: var(--icd-accent); }
.eosl-breadcrumbs .sep { margin: 0 8px; color: #ccc; }
.eosl-breadcrumbs .current { color: #666; }

/* Hero (same as PF) */
.eosl-hero { text-align: center; padding: 40px 20px 30px; }
.eosl-hero h1 { font-size: 36px; font-weight: 700; color: #000; margin: 0 0 10px; line-height: 1.2; }
.eosl-hero-sub { font-size: 18px; color: #444; margin: 0 0 20px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Stats row (same as PF trust bar) */
.eosl-stats-row {
    display: flex; justify-content: center; gap: 40px;
    margin: 25px 0; padding: 20px; background: var(--icd-tint);
    border-radius: 12px; flex-wrap: wrap;
}
.eosl-stat { text-align: center; }
.eosl-stat-num { display: block; font-size: 32px; font-weight: 700; color: var(--icd-accent); line-height: 1.2; }
.eosl-stat-label { font-size: 13px; color: #666; letter-spacing: 0.5px;  }

/* Lifecycle badges */
.eosl-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 6px; font-weight: 700; font-size: 13px;
    letter-spacing: 0.3px;
}
.eosl-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.eosl-badge-current { background: #dcfce7; color: #166534; }
.eosl-badge-eos { background: #fef9c3; color: #854d0e; }
.eosl-badge-eosl { background: #fed7aa; color: #9a3412; }
.eosl-badge-legacy { background: var(--icd-rtint); color: var(--icd-red); }

/* Brand cards (same as PF brand cards) */
.eosl-brand-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin: 30px 0;
}
.eosl-brand-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 30px 20px; background: #fff; border: 2px solid #eee;
    border-radius: 12px; text-decoration: none; color: #333;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.eosl-brand-card:hover {
    border-color: var(--icd-accent); box-shadow: 0 4px 20px rgba(110,43,203,0.12);
    transform: translateY(-2px);
}
.eosl-brand-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.eosl-brand-meta { font-size: 13px; color: #888; text-align: center; line-height: 1.5; }
.eosl-brand-eosl-count { color: #9a3412; font-weight: 600; }
.eosl-brand-current-count { color: #166534; font-weight: 600; }

/* Generation header (same as PF series header) */
.eosl-gen-header {
    font-size: 22px; font-weight: 700; margin: 35px 0 15px;
    padding-bottom: 8px; border-bottom: 2px solid var(--icd-accent);
    display: inline-block;
}

/* Data table */
.eosl-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 30px; }
.eosl-table th {
    padding: 12px 16px; text-align: left; background: #f8f9fa;
    border-bottom: 2px solid var(--icd-accent); font-weight: 600; color: #333;
    font-size: 13px;  letter-spacing: 0.5px;
}
.eosl-table td { padding: 12px 16px; border-bottom: 1px solid #eee; }
.eosl-table tr:hover td { background: #faf8ff; }
.eosl-table a { color: var(--icd-accent); font-weight: 600; text-decoration: none; }
.eosl-table a:hover { text-decoration: underline; }

/* Model hero (similar to PF model page) */
.eosl-model-hero { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 30px; }
.eosl-model-img { width: 200px; height: auto; border-radius: 8px; border: 1px solid #eee; }
.eosl-model-info { flex: 1; min-width: 300px; }
.eosl-model-info h1 { font-size: 32px; font-weight: 700; margin: 0 0 12px; }
.eosl-model-specs { font-size: 15px; color: #555; margin-top: 10px; line-height: 1.6; }

/* Timeline card */
.eosl-timeline {
    background: #f8fafc; border-radius: 12px; padding: 30px; margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}
.eosl-timeline h2 { margin-top: 0; font-size: 22px; }
.eosl-timeline table { width: 100%; border-collapse: collapse; }
.eosl-timeline td { padding: 14px 0; border-bottom: 1px solid #e2e8f0; font-size: 15px; }
.eosl-timeline td:first-child { font-weight: 600; width: 180px; color: #555; }

/* Alert boxes */
.eosl-alert {
    padding: 24px; border-radius: 0 12px 12px 0; margin-bottom: 30px;
    border-left: 4px solid;
}
.eosl-alert h2 { margin-top: 0; font-size: 20px; }
.eosl-alert ul { margin: 12px 0 0 24px; list-style: disc; }
.eosl-alert li { margin-bottom: 10px; line-height: 1.5; }
.eosl-alert a { color: inherit; font-weight: 600; }
.eosl-alert-warning { background: #fef3c7; border-color: #f59e0b; }
.eosl-alert-warning h2 { color: #92400e; }
.eosl-alert-success { background: #ecfdf5; border-color: #10b981; }
.eosl-alert-success h2 { color: #065f46; }

/* Category grid (same as PF category grid) */
.eosl-cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px; margin: 20px 0 30px;
}
.eosl-cat-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px; background: #fff; border: 1px solid #eee;
    border-radius: 10px; text-decoration: none; color: #333; text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 80px;
}
.eosl-cat-card:hover { border-color: var(--icd-accent); box-shadow: 0 2px 12px rgba(110,43,203,0.1); }
.eosl-cat-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.eosl-cat-count { font-size: 13px; color: #666; }

/* CTA section (same purple gradient as PF) */
.eosl-cta {
    background: linear-gradient(135deg, var(--icd-accent) 0%, var(--icd-accent) 100%);
    color: #fff; padding: 40px; border-radius: 12px; text-align: center; margin-bottom: 30px;
}
.eosl-cta h2 { color: #fff; margin: 0 0 10px; font-size: 26px; }
.eosl-cta p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.eosl-cta-btn {
    display: inline-block; padding: 12px 28px; border-radius: 8px;
    font-weight: 600; text-decoration: none; margin: 0 8px 8px; font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.eosl-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.eosl-cta-primary { background: #fff; color: var(--icd-accent); }
.eosl-cta-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* Services section */
.eosl-services {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px;
    padding: 30px; margin-bottom: 30px;
}
.eosl-services h2 { margin-top: 0; font-size: 22px; color: #065f46; }
.eosl-services ul { margin: 12px 0 0 24px; list-style: disc; }
.eosl-services li { margin-bottom: 10px; line-height: 1.5; }
.eosl-services a { color: var(--icd-accent); text-decoration: none; font-weight: 600; }
.eosl-services a:hover { text-decoration: underline; }

/* FAQ section */
.eosl-faq { margin-bottom: 30px; }
.eosl-faq h2 { font-size: 24px; margin-bottom: 20px; }
.eosl-faq-item { border-bottom: 1px solid #eee; padding: 18px 0; }
.eosl-faq-item h3 { font-size: 16px; margin: 0 0 8px; color: var(--icd-ink); }
.eosl-faq-item p { color: #555; margin: 0; font-size: 14px; line-height: 1.7; }

/* Responsive */






/* Text fallback for brands without SVG */
.eosl-brand-name {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Brand logos — large, fill card, transparent */
.eosl-brand-card {
    min-height: 180px;
    justify-content: flex-start;
    padding-top: 25px;
}
.eosl-brand-card .pf-brand-svg-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.eosl-brand-card .pf-brand-svg-logo svg {
    width: auto;
    height: 60px;
    max-width: 160px;
    opacity: 0.85;
}
.eosl-brand-card:hover .pf-brand-svg-logo svg {
    opacity: 1;
}
.eosl-brand-card .eosl-brand-name {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}
/* Meta text below logo — always visible */
.eosl-brand-meta {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin-top: auto;
}
.eosl-brand-eosl-count { color: #9a3412; font-weight: 600; }
.eosl-brand-current-count { color: #166534; font-weight: 600; }


/* ============ MOBILE RESPONSIVE ============ */

/* Tablet */
@media (max-width: 992px) {
    .eosl-brand-grid { grid-template-columns: repeat(3, 1fr); }
    .eosl-brand-card { min-height: 160px; padding: 20px 15px; }
    .eosl-brand-card .pf-brand-svg-logo svg { height: 45px; }
}

/* Mobile */
@media (max-width: 768px) {
    .eosl-page .col-full { padding: 0 15px; }
    
    /* Hero */
    .eosl-hero { padding: 25px 10px 20px; }
    .eosl-hero h1 { font-size: 24px; }
    .eosl-hero-sub { font-size: 15px; }
    
    /* Stats */
    .eosl-stats-row { gap: 15px; padding: 14px; border-radius: 8px; }
    .eosl-stat-num { font-size: 22px; }
    .eosl-stat-label { font-size: 11px; }
    
    /* Brand grid */
    .eosl-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .eosl-brand-card { min-height: 140px; padding: 16px 12px; }
    .eosl-brand-card .pf-brand-svg-logo { height: 50px; margin-bottom: 10px; }
    .eosl-brand-card .pf-brand-svg-logo svg { height: 35px; max-width: 100px; }
    .eosl-brand-name { font-size: 18px; height: 50px; margin-bottom: 10px; }
    .eosl-brand-meta { font-size: 11px; }
    
    /* Model hero */
    .eosl-model-hero { flex-direction: column; gap: 15px; }
    .eosl-model-img { width: 100%; max-width: 250px; margin: 0 auto; }
    .eosl-model-info { min-width: unset; }
    .eosl-model-info h1 { font-size: 24px; }
    .eosl-model-specs { font-size: 13px; }
    
    /* Timeline */
    .eosl-timeline { padding: 20px 15px; }
    .eosl-timeline h2 { font-size: 18px; }
    .eosl-timeline td { padding: 10px 0; font-size: 13px; }
    .eosl-timeline td:first-child { width: 120px; font-size: 12px; }
    
    /* Tables — horizontal scroll */
    .eosl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -15px; padding: 0 15px; }
    .eosl-table { min-width: 600px; font-size: 12px; }
    .eosl-table th, .eosl-table td { padding: 8px 10px; white-space: nowrap; }
    .eosl-gen-header { font-size: 18px; }
    
    /* Alert */
    .eosl-alert { padding: 16px; }
    .eosl-alert h2 { font-size: 17px; }
    .eosl-alert li { font-size: 13px; }
    
    /* Category grid */
    .eosl-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .eosl-cat-card { padding: 14px 10px; }
    .eosl-cat-name { font-size: 13px; }
    .eosl-cat-count { font-size: 11px; }
    
    /* CTA */
    .eosl-cta { padding: 24px 16px; border-radius: 8px; }
    .eosl-cta h2 { font-size: 20px; }
    .eosl-cta p { font-size: 14px; }
    .eosl-cta-btn { display: block; margin: 8px 0; text-align: center; }
    
    /* Services */
    .eosl-services { padding: 20px 15px; }
    .eosl-services h2 { font-size: 18px; }
    
    /* FAQ */
    .eosl-faq h2 { font-size: 20px; }
    .eosl-faq-item h3 { font-size: 14px; }
    .eosl-faq-item p { font-size: 13px; }
    
    /* Breadcrumbs */
    .eosl-breadcrumbs { font-size: 12px; overflow-x: auto; white-space: nowrap; }
    
    /* Badge */
    .eosl-badge { font-size: 11px; padding: 4px 10px; }
}

/* Small phone */
@media (max-width: 480px) {
    .eosl-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .eosl-brand-card { min-height: 120px; padding: 12px 8px; }
    .eosl-brand-card .pf-brand-svg-logo svg { height: 28px; max-width: 80px; }
    .eosl-brand-name { font-size: 16px; height: 40px; }
    .eosl-cat-grid { grid-template-columns: 1fr 1fr; }
    .eosl-stats-row { flex-direction: row; gap: 10px; }
    .eosl-stat-num { font-size: 20px; }
    .eosl-model-info h1 { font-size: 20px; }
}
