/* ============================================
   ACCESSORIES.CSS - Projector Parts & Accessories
   Matching design language with lamps.css
   ============================================ */

/* ============ HERO ============ */
.acc-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0d1b2a;
}

.acc-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(72, 202, 228, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #0d1b2a 100%);
}

.acc-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.acc-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.acc-hero-badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: #48cae4;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.acc-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.15;
    letter-spacing: -1px;
}

.acc-hero-tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 680px;
    line-height: 1.6;
    margin: 0 0 36px 0;
}

.acc-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.acc-stat {
    display: flex;
    flex-direction: column;
}

.acc-stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #48cae4;
    line-height: 1;
    font-family: 'Roboto Mono', monospace;
}

.acc-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ STICKY TABS ============ */
.acc-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(72, 202, 228, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.acc-tabs-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(72, 202, 228, 0.3) transparent;
}

.acc-tabs-inner::-webkit-scrollbar {
    height: 4px;
}

.acc-tabs-inner::-webkit-scrollbar-thumb {
    background: rgba(72, 202, 228, 0.3);
    border-radius: 2px;
}

.acc-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    border: 1px solid rgba(72, 202, 228, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
}

.acc-tab:hover {
    color: #48cae4;
    border-color: rgba(72, 202, 228, 0.4);
    background: rgba(72, 202, 228, 0.05);
}

.acc-tab.active {
    background: #00b4d8;
    color: #fff;
    border-color: #00b4d8;
    box-shadow: 0 2px 12px rgba(0, 180, 216, 0.3);
}

/* ============ MAIN CONTENT ============ */
.acc-main {
    background: #f4f7f9;
    padding: 40px 0 60px 0;
}

/* ============ HOT-SELLING MOTHERBOARD STRIP ============ */
.acc-hot-strip {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 8px 0 28px 0;
    border: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}
.acc-hot-strip::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
}
.acc-hot-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.acc-hot-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}
.acc-hot-text {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}
.acc-hot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.acc-hot-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: block;
}
.acc-hot-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #f59e0b;
    transform: translateY(-2px);
}
.acc-hot-img {
    aspect-ratio: 1.2;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.acc-hot-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.acc-hot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.acc-hot-brand {
    background: #f59e0b;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}
.acc-hot-model {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ DMD HERO ============ */
.acc-dmd-hero {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 28px;
    background: linear-gradient(135deg, #0c1830 0%, #1a2b50 100%);
    border-radius: 14px;
    padding: 30px;
    margin: 8px 0 28px 0;
    border: 1px solid #1e3a5f;
    color: #e2e8f0;
    align-items: center;
}
.acc-dmd-hero-text h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0 12px 0;
    letter-spacing: -0.5px;
}
.acc-dmd-hero-text p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}
.acc-dmd-hero-tag {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}
.acc-dmd-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.acc-dmd-hero-list li {
    color: #cbd5e1;
    font-size: 13px;
    padding-left: 22px;
    position: relative;
}
.acc-dmd-hero-list li::before {
    content: "▸";
    color: #f59e0b;
    position: absolute;
    left: 0;
    font-weight: 700;
}
.acc-dmd-hero-list li strong {
    color: #fff;
    font-weight: 700;
}
.acc-dmd-hero-img {
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.acc-dmd-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============ LENS HERO ============ */
.acc-lens-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 26px 28px;
    margin: 8px 0 28px 0;
    border: 1px solid #1e293b;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}
.acc-lens-hero::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.acc-lens-hero-text {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.acc-lens-tag {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}
.acc-lens-hero-text h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 10px 0;
}
.acc-lens-hero-text p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.acc-lens-hero-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}
.acc-lens-type {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
}
.acc-lens-type:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}
.acc-lens-type-num {
    color: #f59e0b;
    font-size: 22px;
    font-weight: 800;
    font-family: "Roboto Mono", monospace;
    margin-bottom: 6px;
}
.acc-lens-type-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.acc-lens-type-desc {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============ PDF LINK ============ */
.acc-pdf-link {
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
}
.acc-pdf-link:hover {
    color: #d97706;
    text-decoration: underline;
}

/* ============ MOUNT / SCREEN ICON ============ */
.acc-icon-mount {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    position: relative;
}
.acc-icon-mount::after {
    content: "↑";
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.acc-icon-screen {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    position: relative;
}
.acc-icon-screen::after {
    content: "▭";
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .acc-hot-grid { grid-template-columns: repeat(2, 1fr); }
    .acc-dmd-hero { grid-template-columns: 1fr; }
    .acc-lens-hero-types { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .acc-hot-grid { grid-template-columns: 1fr; }
    .acc-lens-hero-types { grid-template-columns: 1fr; }
}

/* ============ CATEGORY SECTIONS ============ */
.acc-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8edf0;
    scroll-margin-top: 70px;
}

.acc-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.acc-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Category-specific icon colors */
.acc-section-icon.acc-icon-circuit-board { background: linear-gradient(135deg, #0077b6, #03045e); }
.acc-section-icon.acc-icon-lcd-panel { background: linear-gradient(135deg, #00b4d8, #0077b6); }
.acc-section-icon.acc-icon-filter { background: linear-gradient(135deg, #48cae4, #00b4d8); }
.acc-section-icon.acc-icon-chip { background: linear-gradient(135deg, #0096c7, #023e8a); }
.acc-section-icon.acc-icon-lens { background: linear-gradient(135deg, #00b4d8, #023e8a); }
.acc-section-icon.acc-icon-power-board { background: linear-gradient(135deg, #023e8a, #03045e); }
.acc-section-icon.acc-icon-lamp-power { background: linear-gradient(135deg, #0096c7, #03045e); }
.acc-section-icon.acc-icon-color-wheel { background: linear-gradient(135deg, #48cae4, #0077b6); }
.acc-section-icon.acc-icon-led { background: linear-gradient(135deg, #00b4d8, #023e8a); }
.acc-section-icon.acc-icon-remote { background: linear-gradient(135deg, #0077b6, #03045e); }
.acc-section-icon.acc-icon-fan { background: linear-gradient(135deg, #0096c7, #03045e); }
.acc-section-icon.acc-icon-cable { background: linear-gradient(135deg, #48cae4, #0096c7); }
.acc-section-icon.acc-icon-nec { background: linear-gradient(135deg, #0077b6, #023e8a); }
.acc-section-icon.acc-icon-yatu { background: linear-gradient(135deg, #00b4d8, #0077b6); }

.acc-section-icon::after {
    content: '';
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.9);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.acc-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1b263b;
    margin: 0;
    line-height: 1.3;
}

.acc-section-sub {
    font-size: 13px;
    color: #6c7a8c;
    margin: 4px 0 0 0;
    font-weight: 500;
}

.acc-section-desc {
    font-size: 14px;
    color: #5a6577;
    line-height: 1.7;
    margin: 0 0 24px 0;
    max-width: 900px;
}

/* ============ IMAGE GRID ============ */
.acc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.acc-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    border: 1px solid #e0e6ea;
    transition: all 0.25s ease;
}

.acc-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #00b4d8;
}

.acc-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
    transition: transform 0.3s ease;
}

.acc-item:hover img {
    transform: scale(1.05);
}

.acc-more-notice {
    text-align: center;
    font-size: 13px;
    color: #8a95a3;
    padding: 12px 0 4px 0;
    border-top: 1px dashed #e0e6ea;
    margin-top: 16px;
}

.acc-more {
    color: #00b4d8;
    font-weight: 600;
}

/* ============ SECTION CTA ============ */
.acc-section-cta {
    margin-top: 20px;
    text-align: center;
}

.acc-inquire-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #25D366;
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.acc-inquire-btn:hover {
    background: #1eb855;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.acc-inquire-btn svg {
    flex-shrink: 0;
}

/* ============ WHY ACCESSORIES SECTION ============ */
.why-acc {
    background: #0d1b2a;
    padding: 70px 0;
}

.why-acc h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 50px 0;
    letter-spacing: -0.5px;
}

.why-acc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-acc-item {
    text-align: center;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(72, 202, 228, 0.1);
    transition: all 0.3s ease;
}

.why-acc-item:hover {
    background: rgba(72, 202, 228, 0.05);
    border-color: rgba(72, 202, 228, 0.25);
    transform: translateY(-4px);
}

.why-acc-num {
    font-size: 32px;
    font-weight: 800;
    color: #00b4d8;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 12px;
    opacity: 0.7;
}

.why-acc-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.why-acc-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* ============ CTA SECTION ============ */
.acc-cta {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    padding: 60px 0;
    text-align: center;
}

.acc-cta h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
}

.acc-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 30px 0;
}

.acc-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.acc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.acc-cta-wa {
    background: #25D366;
    color: #fff;
}

.acc-cta-wa:hover {
    background: #1eb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.acc-cta-email {
    background: #fff;
    color: #0077b6;
}

.acc-cta-email:hover {
    background: #f0f3f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ============ LIGHTBOX MODAL ============ */
.acc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.acc-lightbox.active {
    display: flex;
}

.acc-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.acc-lightbox-inner img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.acc-lb-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-lb-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.acc-lb-prev,
.acc-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.acc-lb-prev {
    left: -60px;
}

.acc-lb-next {
    right: -60px;
}

.acc-lb-prev:hover,
.acc-lb-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.acc-lb-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    white-space: nowrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .acc-hero h1 {
        font-size: 32px;
    }

    .acc-hero-tagline {
        font-size: 15px;
    }

    .acc-hero-stats {
        gap: 24px;
    }

    .acc-stat-num {
        font-size: 28px;
    }

    .acc-section {
        padding: 20px 16px;
    }

    .acc-section-title {
        font-size: 18px;
    }

    .acc-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }

    .acc-section-header {
        gap: 12px;
    }

    .acc-section-icon {
        width: 40px;
        height: 40px;
    }

    .why-acc h2 {
        font-size: 26px;
    }

    .acc-cta h2 {
        font-size: 24px;
    }

    .acc-lb-prev {
        left: 10px;
    }

    .acc-lb-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .acc-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .acc-hero h1 {
        font-size: 26px;
    }

    .acc-hero-stats {
        gap: 16px;
    }

    .acc-stat-num {
        font-size: 22px;
    }
}
