/* D4U AI SEO Booster — Frontend Styles v1.3.0 */

/* ── Specs Table ── */
.d4u-specs-section {
    margin: 40px 0;
    direction: rtl;
}

.d4u-specs-table,
.d4u-specs-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-top: 12px;
}

.d4u-specs-table th,
.d4u-specs-table td,
.d4u-specs-section table th,
.d4u-specs-section table td {
    padding: 11px 16px;
    border: 1px solid #e8e8e8;
    text-align: right;
}

.d4u-specs-table thead th,
.d4u-specs-section table thead th {
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.d4u-specs-table tbody tr:nth-child(even),
.d4u-specs-section table tbody tr:nth-child(even) {
    background: #fafafa;
}

.d4u-specs-table tbody td:first-child,
.d4u-specs-section table tbody td:first-child {
    font-weight: 600;
    color: #333;
    width: 35%;
}

/* ── FAQ Accordion ── */
.d4u-faq-section {
    margin: 40px 0;
    direction: rtl;
    font-family: inherit;
}

.d4u-faq-section__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5c800;
    display: inline-block;
}

.d4u-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.d4u-faq-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}

/* <details> / <summary> — no JS needed */
.d4u-faq-item details {
    margin: 0;
}

.d4u-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    background: #fff;
    transition: background .15s ease;
    user-select: none;
}

.d4u-faq-item summary::-webkit-details-marker { display: none; }

.d4u-faq-item summary::after {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-left: 2px solid #b99500;
    border-bottom: 2px solid #b99500;
    transform: rotate(-45deg);
    margin-top: -4px;
    flex-shrink: 0;
    transition: transform .25s ease, margin-top .25s ease;
}

.d4u-faq-item details[open] summary {
    background: #fffdf0;
}

.d4u-faq-item details[open] summary::after {
    transform: rotate(135deg);
    margin-top: 4px;
}

.d4u-faq-answer {
    padding: 0 20px 16px;
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* ── Related Categories (dynamic internal links) ── */
.d4u-related-cats {
    margin: 28px 0 24px;
    padding: 18px 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    direction: rtl;
}

.d4u-related-cats__label {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 0 0 12px;
}

/* LI carries the visual box — theme can't override it like it does <a> */
.d4u-related-cats__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.d4u-related-cats__item {
    display: inline-block !important;
    margin: 0 8px 8px 0 !important;
    padding: 0 !important;
    background: #f7f7f7 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    transition: background .15s, border-color .15s !important;
}

.d4u-related-cats__item:hover {
    background: #fffdf0 !important;
    border-color: #f5c800 !important;
}

.d4u-related-cats__item a {
    display: block !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.d4u-related-cats__item:hover a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

/* ── Showroom CTA Banner ── */
.d4u-showroom-banner {
    margin: 36px 0;
    direction: rtl;
}

.d4u-showroom-banner__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffdf0 0%, #fff9d6 100%);
    border: 1px solid #f0d800;
    border-right: 4px solid #f5c800;
    border-radius: 8px;
    flex-wrap: wrap;
}

.d4u-showroom-banner__icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.d4u-showroom-banner__text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.d4u-showroom-banner__text strong {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.d4u-showroom-banner__text span {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.d4u-showroom-banner__btn {
    display: inline-block;
    padding: 10px 22px;
    background: #1a1a1a;
    color: #f5c800 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 5px;
    white-space: nowrap;
    transition: background .2s ease;
    flex-shrink: 0;
}

.d4u-showroom-banner__btn:hover {
    background: #333;
    color: #f5c800 !important;
}
