/* ============================================================
   oemparts.jp — Custom Styles
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #eb0009;
    --primary-dark: #c40008;
    --primary-light: #ff3333;
    --accent-teal: #00a88c;
    --accent-teal-dark: #008a73;
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f8f8f8;
    --nav-height: 70px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* ---------- Base Reset ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: var(--nav-height);
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ---------- Floating Navigation Bar ---------- */
#floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 0 20px;
}

#floating-nav.uk-navbar-container:not(.uk-navbar-transparent) {
    background: rgba(255, 255, 255, 0.97);
}

#floating-nav .uk-navbar-nav > li > a {
    min-height: var(--nav-height);
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
}

#floating-nav .uk-navbar-nav > li > a i {
    margin-right: 6px;
    font-size: 15px;
}

#floating-nav .uk-navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

#floating-nav .uk-navbar-nav > li.uk-active > a {
    color: var(--primary);
}

#floating-nav .uk-navbar-nav > li.uk-active > a::after {
    transform: translateX(-50%) scaleX(1);
}

#floating-nav .uk-navbar-nav > li > a:hover {
    color: var(--primary);
}

/* Logo */
.uk-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-icon img {
    max-height: 36px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* ---------- Page Sections ---------- */
.section {
    display: none;
    min-height: calc(100vh - var(--nav-height));
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero / Logo Area ---------- */
.hero-logo {
    margin-bottom: 20px;
}

.hero-logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* ---------- Brand Tags Cloud ---------- */
#brands-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    border: none;
    user-select: none;
}

.brand-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
    color: #fff;
    text-decoration: none;
}

.brand-tag i {
    font-size: 16px;
}

/* Brand colors */
.brand-tag.toyota    { background: #e60012; }
.brand-tag.nissan    { background: #c3002f; }
.brand-tag.honda     { background: #0044a4; }
.brand-tag.mazda     { background: #101010; }
.brand-tag.subaru    { background: #013c7a; }
.brand-tag.mitsubishi { background: #d52b1e; }
.brand-tag.suzuki    { background: #1a1a1a; }
.brand-tag.daihatsu  { background: #0073b7; }
.brand-tag.isuzu     { background: #b31b1b; }
.brand-tag.lexus     { background: #1a1a1a; }
.brand-tag.acura     { background: #1a1a1a; }
.brand-tag.infiniti  { background: #1a1a1a; }
.brand-tag.yamaha    { background: #004a8f; }
.brand-tag.komatsu   { background: #f7941e; }
.brand-tag.yanmar    { background: #00843d; }
.brand-tag.kubota    { background: #e60012; }
.brand-tag.bridgestone { background: #004a8f; }
.brand-tag.denso     { background: #003366; }
.brand-tag.aisin     { background: #002856; }
.brand-tag.ntn       { background: #003366; }
.brand-tag.nsk       { background: #003366; }
.brand-tag.kyb       { background: #004a8f; }
.brand-tag.tanabe    { background: #333; }
.brand-tag.hks       { background: #d32f2f; }
.brand-tag.greddy    { background: #222; }
.brand-tag.blitz     { background: #d32f2f; }
.brand-tag.trust     { background: #111; }
.brand-tag.cusco     { background: #d32f2f; }
.brand-tag.tein      { background: #0044a4; }
.brand-tag.rays      { background: #111; }
.brand-tag.enkei     { background: #0044a4; }
.brand-tag.work      { background: #222; }

/* ---------- Contact Form Styles ---------- */
#contact-form .uk-input,
#contact-form .uk-textarea,
#contact-form .uk-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    font-size: 15px;
}

#contact-form .uk-input:focus,
#contact-form .uk-textarea:focus,
#contact-form .uk-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(235, 0, 9, 0.15);
}

#contact-form .uk-button-danger {
    background: var(--primary);
    border-radius: 50px;
    padding: 0 40px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

#contact-form .uk-button-danger:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- OEM Part Number Tags ---------- */
.part-number-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.part-number-input-row .uk-input {
    flex: 1;
    min-width: 0;
}

#part-number-add-btn {
    white-space: nowrap;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    font-size: 14px;
    padding: 0 16px;
}

#part-number-add-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.part-number-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.part-number-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.part-number-tag .tag-remove {
    cursor: pointer;
    color: #999;
    font-size: 12px;
    line-height: 1;
    transition: color 0.15s ease;
}

.part-number-tag .tag-remove:hover {
    color: var(--primary);
}

/* ---------- Feature Cards ---------- */
.uk-card-hover {
    transition: var(--transition);
    border-radius: 12px;
    border: 1px solid #eee;
}

.uk-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-teal);
}

/* ---------- Social Media Icons ---------- */
.uk-icon-button {
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid #e0e0e0;
    color: var(--text-muted);
}

.uk-icon-button:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    background: rgba(0, 168, 140, 0.05);
    transform: translateY(-2px);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ============================================================
   ARTICLE STYLES — единый стиль для всех статей
   ============================================================ */

/* ---------- Article Hero ---------- */
.article-hero {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.article-hero h1 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}
.article-hero .meta {
    color: #999;
    font-size: 0.9rem;
}
.article-hero .meta i {
    margin-right: 4px;
}

/* ---------- Back Link ---------- */
.back-link {
    display: inline-block;
    margin: 20px 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}
.back-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}
.back-link i {
    margin-right: 5px;
}

/* ---------- Article Content ---------- */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-radius: 0 0 12px 12px;
}
.article-content h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}
.article-content h3 {
    font-size: 1.2rem;
    color: #444;
    margin-top: 25px;
    margin-bottom: 10px;
}
.article-content p {
    margin-bottom: 16px;
}
.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 25px;
}
.article-content li {
    margin-bottom: 8px;
}

/* ---------- Highlight Box ---------- */
.article-content .highlight-box {
    background: #f0f7ff;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.article-content .highlight-box h4 {
    color: var(--primary);
    margin-bottom: 8px;
}
.article-content .highlight-box p {
    margin-bottom: 0;
}

/* ---------- Info Box ---------- */
.article-content .info-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.article-content .info-box h4 {
    color: #2e7d32;
    margin-bottom: 8px;
}
.article-content .info-box p {
    margin-bottom: 0;
}

/* ---------- Warning Box ---------- */
.article-content .warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.article-content .warning-box h4 {
    color: #e65100;
    margin-bottom: 8px;
}
.article-content .warning-box p {
    margin-bottom: 0;
}

/* ---------- Step Box ---------- */
.article-content .step-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.article-content .step-box h4 {
    color: var(--primary);
    margin-bottom: 8px;
}
.article-content .step-box p {
    margin-bottom: 0;
}

/* ---------- Step (numbered) ---------- */
.article-content .step {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.article-content .step h3 {
    color: var(--primary);
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* ---------- Comparison Table ---------- */
.article-content .comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
}
.article-content .comparison-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}
.article-content .comparison-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}
.article-content .comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}
.article-content .comparison-table tbody tr:hover {
    background: #f0f7ff;
}

/* ---------- Shipping Card ---------- */
.article-content .shipping-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}
.article-content .shipping-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}
.article-content .shipping-card p {
    margin-bottom: 0;
}

/* ---------- Brand Card ---------- */
.article-content .brand-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.article-content .brand-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.article-content .brand-card h4 {
    color: var(--primary);
    margin-bottom: 8px;
}
.article-content .brand-card p {
    margin-bottom: 0;
}

/* ---------- Car Card ---------- */
.article-content .car-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 0;
    box-shadow: var(--shadow-sm);
}
.article-content .car-card h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}
.article-content .car-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ---------- Pros/Cons ---------- */
.article-content .pro-con {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}
.article-content .pros,
.article-content .cons {
    padding: 20px;
    border-radius: 8px;
}
.article-content .pros {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}
.article-content .cons {
    background: #ffebee;
    border: 1px solid #ffcdd2;
}
.article-content .pros h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}
.article-content .cons h4 {
    color: #c62828;
    margin-bottom: 10px;
}
.article-content .pros ul,
.article-content .cons ul {
    margin-bottom: 0;
    padding-left: 20px;
}

/* ---------- Price Chart (bar chart) ---------- */
.article-content .price-chart {
    margin: 25px 0;
}
.article-content .price-chart .bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}
.article-content .price-chart .bar .label {
    width: 120px;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.article-content .price-chart .bar .fill {
    height: 24px;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.article-content .price-chart .bar .value {
    margin-left: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ---------- Article Navigation ---------- */
.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}
.article-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.article-nav a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ---------- Checklist ---------- */
.article-content .checklist {
    list-style: none;
    padding-left: 0;
}
.article-content .checklist li {
    padding: 6px 0 6px 28px;
    position: relative;
}
.article-content .checklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #4caf50;
}

/* ---------- Articles Grid (index page) ---------- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}
.articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.articles-list li {
    margin-bottom: 12px;
}
.articles-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.articles-list li a:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--primary);
}
.article-icon {
    width: 32px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

/* ---------- Step Number Badge ---------- */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ---------- Brand Tag in Brand Card ---------- */
.brand-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ---------- Brand Icon in Brand Card ---------- */
.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
    margin-bottom: 10px;
}

/* ---------- Mobile Navigation (Offcanvas) ---------- */
#mobile-nav .uk-offcanvas-bar {
    background: #fff;
    color: #333;
}

#mobile-nav .uk-offcanvas-bar .uk-offcanvas-close {
    color: #333;
}

#mobile-nav .uk-nav-default > li > a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

#mobile-nav .uk-nav-default > li > a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary);
}

#mobile-nav .uk-nav-default > li > a:hover {
    color: var(--primary);
    background: #f8f8f8;
}

#mobile-nav .uk-nav-default > li.uk-active > a {
    color: var(--primary);
    font-weight: 700;
}

/* ---------- Responsive / Mobile ---------- */
@media (max-width: 640px) {
    :root {
        --nav-height: 60px;
    }

    #floating-nav {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 15px;
    }

    .uk-heading-small {
        font-size: 1.6rem;
    }

    .brand-tag {
        font-size: 12px;
        padding: 8px 16px;
    }

    .article-hero h1 { font-size: 1.6rem; }
    .article-content { font-size: 1rem; }
    .article-content .pro-con { grid-template-columns: 1fr; }
    .article-content .price-chart .bar .label { width: 80px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .brand-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
}
