/* Luster Dust Content Engine — Frontend Components */
/* Design: subtle, modern, blends with any WooCommerce theme */

:root {
    --ldce-gold: #c9a84c;
    --ldce-gold-light: #f5edd4;
    --ldce-border: #e5e5e5;
    --ldce-bg-subtle: #fafafa;
    --ldce-bg-warm: #fdf8f0;
    --ldce-text: #333;
    --ldce-text-light: #666;
    --ldce-radius: 8px;
    --ldce-radius-sm: 5px;
    --ldce-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --ldce-shadow-hover: 0 3px 12px rgba(0,0,0,0.1);
    --ldce-transition: 0.2s ease;
}

/* ============================================================
   RECIPE CARD (meta bar)
   ============================================================ */

.ldce-recipe-card {
    background: var(--ldce-bg-warm);
    border: 1px solid var(--ldce-border);
    border-radius: var(--ldce-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ldce-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ldce-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ldce-text);
}

.ldce-meta-icon { font-size: 16px; }
.ldce-meta-label { font-weight: 500; color: var(--ldce-text-light); }
.ldce-meta-value { font-weight: 600; }

/* Difficulty pills */
.ldce-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ldce-pill-easy { background: #e8f5e9; color: #2e7d32; }
.ldce-pill-medium { background: #fff3e0; color: #e65100; }
.ldce-pill-hard { background: #fce4ec; color: #c62828; }

/* ============================================================
   INGREDIENT LIST
   ============================================================ */

.ldce-ingredient-list {
    background: var(--ldce-bg-subtle);
    border: 1px solid var(--ldce-border);
    border-radius: var(--ldce-radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.ldce-section-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    color: var(--ldce-text);
}

.ldce-ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ldce-ingredient-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--ldce-border);
    font-size: 15px;
}

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

.ldce-ing-qty { font-weight: 600; }
.ldce-ing-unit { color: var(--ldce-text-light); }

.ldce-ing-product-link {
    color: var(--ldce-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted var(--ldce-gold);
    transition: var(--ldce-transition);
}

.ldce-ing-product-link:hover { color: #a8832e; }

/* ============================================================
   RECIPE STEPS
   ============================================================ */

.ldce-step {
    border: 1px solid var(--ldce-border);
    border-radius: var(--ldce-radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: var(--ldce-transition);
}

.ldce-step:hover { box-shadow: var(--ldce-shadow); }

.ldce-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    background: #fff;
    user-select: none;
}

.ldce-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ldce-gold);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.ldce-step-title { flex: 1; font-weight: 600; font-size: 15px; }

.ldce-step-chevron {
    font-size: 20px;
    color: var(--ldce-text-light);
    transition: transform 0.2s;
}

.ldce-step.active .ldce-step-chevron { transform: rotate(90deg); }

.ldce-step-body {
    padding: 0 18px 16px 58px;
    display: none;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ldce-text-light);
}

.ldce-step.active .ldce-step-body { display: block; }

/* ============================================================
   KEY TAKEAWAY BOX
   ============================================================ */

.ldce-takeaway {
    background: var(--ldce-bg-warm);
    border-left: 4px solid var(--ldce-gold);
    border-radius: 0 var(--ldce-radius) var(--ldce-radius) 0;
    padding: 16px 20px;
    margin: 24px 0;
}

.ldce-takeaway-header {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ldce-gold);
    margin-bottom: 8px;
}

.ldce-takeaway-icon { margin-right: 4px; }
.ldce-takeaway-body { font-size: 15px; line-height: 1.7; }
.ldce-takeaway-body p:last-child { margin-bottom: 0; }

/* ============================================================
   PRODUCT PILL / TAG
   ============================================================ */

.ldce-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--ldce-gold-light);
    color: #8b6914;
    border: 1px solid rgba(201,168,76,0.3);
    transition: var(--ldce-transition);
    white-space: nowrap;
}

.ldce-product-pill:hover {
    background: var(--ldce-gold);
    color: #fff;
    border-color: var(--ldce-gold);
}

.ldce-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ldce-gold);
}

.ldce-product-pill:hover .ldce-pill-dot { background: #fff; }

/* Color variants for pills */
.ldce-pill-color-pink { background: #fce4ec; color: #ad1457; border-color: rgba(173,20,87,0.2); }
.ldce-pill-color-pink .ldce-pill-dot { background: #e91e63; }
.ldce-pill-color-pink:hover { background: #e91e63; color: #fff; }

.ldce-pill-color-red { background: #ffebee; color: #c62828; border-color: rgba(198,40,40,0.2); }
.ldce-pill-color-red .ldce-pill-dot { background: #e53935; }
.ldce-pill-color-red:hover { background: #e53935; color: #fff; }

.ldce-pill-color-purple { background: #f3e5f5; color: #6a1b9a; border-color: rgba(106,27,154,0.2); }
.ldce-pill-color-purple .ldce-pill-dot { background: #8e24aa; }
.ldce-pill-color-purple:hover { background: #8e24aa; color: #fff; }

.ldce-pill-color-blue { background: #e3f2fd; color: #1565c0; border-color: rgba(21,101,192,0.2); }
.ldce-pill-color-blue .ldce-pill-dot { background: #1e88e5; }
.ldce-pill-color-blue:hover { background: #1e88e5; color: #fff; }

.ldce-pill-color-green { background: #e8f5e9; color: #2e7d32; border-color: rgba(46,125,50,0.2); }
.ldce-pill-color-green .ldce-pill-dot { background: #43a047; }
.ldce-pill-color-green:hover { background: #43a047; color: #fff; }

.ldce-pill-color-silver { background: #f5f5f5; color: #616161; border-color: rgba(97,97,97,0.2); }
.ldce-pill-color-silver .ldce-pill-dot { background: #9e9e9e; }
.ldce-pill-color-silver:hover { background: #9e9e9e; color: #fff; }

.ldce-pill-color-rose-gold { background: #fbe9e7; color: #bf360c; border-color: rgba(191,54,12,0.2); }
.ldce-pill-color-rose-gold .ldce-pill-dot { background: #e64a19; }
.ldce-pill-color-rose-gold:hover { background: #e64a19; color: #fff; }

.ldce-pill-color-white { background: #fafafa; color: #757575; border-color: rgba(0,0,0,0.12); }
.ldce-pill-color-white .ldce-pill-dot { background: #e0e0e0; }
.ldce-pill-color-white:hover { background: #e0e0e0; color: #333; }

/* ============================================================
   ACCORDION (FAQ + Tips)
   ============================================================ */

.ldce-accordion { margin: 24px 0; }

.ldce-accordion-item {
    border: 1px solid var(--ldce-border);
    border-radius: var(--ldce-radius);
    margin-bottom: 6px;
    overflow: hidden;
}

.ldce-accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--ldce-text);
    text-align: left;
    transition: background var(--ldce-transition);
}

.ldce-accordion-trigger:hover { background: var(--ldce-bg-subtle); }

.ldce-acc-icon {
    font-size: 20px;
    font-weight: 400;
    color: var(--ldce-text-light);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.ldce-accordion-trigger[aria-expanded="true"] .ldce-acc-icon {
    transform: rotate(45deg);
}

.ldce-accordion-panel {
    padding: 0 18px 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ldce-text-light);
}

.ldce-accordion-panel p:last-child { margin-bottom: 0; }

/* ============================================================
   TABS
   ============================================================ */

.ldce-tabs { margin: 24px 0; }

.ldce-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--ldce-border);
    margin-bottom: 0;
    overflow-x: auto;
}

.ldce-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--ldce-text-light);
    white-space: nowrap;
    transition: var(--ldce-transition);
}

.ldce-tab-btn:hover { color: var(--ldce-text); }

.ldce-tab-btn.ldce-tab-active {
    color: var(--ldce-gold);
    border-bottom-color: var(--ldce-gold);
}

.ldce-tab-panel {
    padding: 20px 0;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================================
   RELATED CONTENT GRID
   ============================================================ */

.ldce-related-section { margin: 32px 0; }

.ldce-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.ldce-related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ldce-border);
    border-radius: var(--ldce-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--ldce-text);
    transition: var(--ldce-transition);
    background: #fff;
}

.ldce-related-card:hover {
    box-shadow: var(--ldce-shadow-hover);
    transform: translateY(-2px);
}

.ldce-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.ldce-card-placeholder {
    height: 160px;
    background: var(--ldce-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ldce-card-sparkle { font-size: 32px; color: var(--ldce-gold); }

.ldce-card-body { padding: 14px 16px; }
.ldce-card-title { font-size: 15px; font-weight: 600; margin: 0 0 6px 0; }
.ldce-card-desc { font-size: 13px; color: var(--ldce-text-light); margin: 0; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.ldce-comparison-wrap {
    overflow-x: auto;
    margin: 24px 0;
}

.ldce-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ldce-comparison-table th {
    background: var(--ldce-bg-warm);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--ldce-border);
}

.ldce-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ldce-border);
}

.ldce-compare-label { font-weight: 600; }
.ldce-compare-ours { background: rgba(201,168,76,0.06); }

/* ============================================================
   PROS/CONS CARD
   ============================================================ */

.ldce-pros-cons-card {
    border: 1px solid var(--ldce-border);
    border-radius: var(--ldce-radius);
    padding: 20px;
    margin: 16px 0;
    background: #fff;
}

.ldce-pc-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ldce-border);
}

.ldce-pc-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 500px) {
    .ldce-pc-columns { grid-template-columns: 1fr; }
}

.ldce-pc-pros h5, .ldce-pc-cons h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.ldce-pc-pros h5 { color: #2e7d32; }
.ldce-pc-cons h5 { color: #c62828; }

.ldce-pc-pros ul, .ldce-pc-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ldce-pro, .ldce-con {
    padding: 4px 0;
    font-size: 14px;
}

.ldce-pro { color: #2e7d32; }
.ldce-con { color: #c62828; }

.ldce-verdict {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--ldce-border);
    font-size: 14px;
}

/* ============================================================
   PRODUCT RECOMMENDATION CARD
   ============================================================ */

.ldce-product-card {
    display: flex;
    gap: 16px;
    border: 1px solid var(--ldce-border);
    border-radius: var(--ldce-radius);
    padding: 16px;
    margin: 20px 0;
    background: #fff;
    transition: var(--ldce-transition);
}

.ldce-product-card:hover { box-shadow: var(--ldce-shadow); }

.ldce-prodcard-swatch {
    width: 60px;
    height: 60px;
    border-radius: var(--ldce-radius-sm);
    flex-shrink: 0;
    background: var(--ldce-gold);
}

.ldce-swatch-gold { background: linear-gradient(135deg, #c9a84c, #e5c66e); }
.ldce-swatch-silver { background: linear-gradient(135deg, #9e9e9e, #e0e0e0); }
.ldce-swatch-rose-gold { background: linear-gradient(135deg, #d4837a, #f0b8a8); }
.ldce-swatch-pink { background: linear-gradient(135deg, #e91e63, #f48fb1); }
.ldce-swatch-red { background: linear-gradient(135deg, #e53935, #ef9a9a); }
.ldce-swatch-purple { background: linear-gradient(135deg, #8e24aa, #ce93d8); }
.ldce-swatch-blue { background: linear-gradient(135deg, #1e88e5, #90caf9); }
.ldce-swatch-green { background: linear-gradient(135deg, #43a047, #a5d6a7); }
.ldce-swatch-white { background: linear-gradient(135deg, #f5f5f5, #fff); border: 1px solid #e0e0e0; }
.ldce-swatch-orange { background: linear-gradient(135deg, #f57c00, #ffcc80); }
.ldce-swatch-yellow { background: linear-gradient(135deg, #fdd835, #fff59d); }

.ldce-prodcard-name { font-size: 16px; font-weight: 700; margin: 0 0 4px 0; }
.ldce-prodcard-meta { font-size: 13px; color: var(--ldce-text-light); margin-bottom: 6px; }
.ldce-prodcard-size { margin-right: 8px; }
.ldce-prodcard-price { font-weight: 600; }
.ldce-prodcard-note { font-size: 13px; color: var(--ldce-text-light); margin: 4px 0; }

.ldce-prodcard-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ldce-gold);
    text-decoration: none;
    margin-top: 4px;
    transition: var(--ldce-transition);
}

.ldce-prodcard-btn:hover { color: #a8832e; }

/* ============================================================
   PRODUCT PAGE ENRICHMENT (WooCommerce)
   ============================================================ */

.ldce-recipe-tab, .ldce-faq-tab { padding: 8px 0; }
.ldce-product-faq { margin: 0; }

.ldce-recipe-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ldce-recipe-link-card {
    display: flex;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--ldce-border);
    border-radius: var(--ldce-radius);
    text-decoration: none;
    color: var(--ldce-text);
    transition: var(--ldce-transition);
}

.ldce-recipe-link-card:hover {
    box-shadow: var(--ldce-shadow);
    border-color: var(--ldce-gold);
}

.ldce-recipe-link-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--ldce-radius-sm);
    flex-shrink: 0;
}

.ldce-recipe-link-placeholder {
    width: 70px;
    height: 70px;
    background: var(--ldce-bg-warm);
    border-radius: var(--ldce-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ldce-gold);
    font-size: 20px;
}

.ldce-recipe-link-body h4 { font-size: 14px; margin: 0 0 4px 0; }
.ldce-recipe-link-body p { font-size: 13px; color: var(--ldce-text-light); margin: 0; }

/* Pairs With section */
.ldce-pairs-section { margin: 24px 0; }

.ldce-pairs-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ldce-pair-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ldce-text);
    padding: 10px;
    border-radius: var(--ldce-radius);
    transition: var(--ldce-transition);
}

.ldce-pair-card:hover { background: var(--ldce-bg-subtle); }

.ldce-pair-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.ldce-pair-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.ldce-pair-name { font-size: 12px; font-weight: 600; text-align: center; }

/* Blog links section */
.ldce-blog-links-section { margin: 24px 0; }

.ldce-blog-link-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--ldce-border);
}

.ldce-blog-link-item a {
    color: var(--ldce-gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--ldce-transition);
}

.ldce-blog-link-item a:hover { color: #a8832e; }

/* Body image figure */
.ldce-body-image {
    margin: 24px 0;
    border-radius: var(--ldce-radius);
    overflow: hidden;
}

.ldce-body-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ldce-body-image figcaption {
    font-size: 13px;
    color: var(--ldce-text-light);
    text-align: center;
    padding: 8px 12px;
    background: var(--ldce-bg-subtle);
}

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

@media (max-width: 600px) {
    .ldce-recipe-meta { gap: 12px; }
    .ldce-meta-item { font-size: 13px; }
    .ldce-related-grid { grid-template-columns: 1fr; }
    .ldce-product-card { flex-direction: column; }
    .ldce-step-body { padding-left: 18px; }
}
