/**
 * Branwell Energy — plugin styles
 * Handle: bw-styles-energy
 *
 * Mirrors branwell-tarot's Option B layout — icon image as visual
 * hero on the left, body text as magazine column on the right.
 * No outer card box. Same palette tokens, same pill style, same
 * top-margin rhythm so this widget reads as a sister-component
 * to the daily tarot widget.
 *
 * Scope: all rules under #bw-energy-panel so nothing leaks.
 *
 * Plugin owns:
 *   - 2-column layout (icon / body)
 *   - icon sizing + slight tilt
 *   - eyebrow rhythm + pill keyword styling
 *
 * Plugin does NOT own:
 *   - body font, body colour, container max-width  (theme owns)
 *   - h2 base styling                              (theme owns)
 *
 * Palette tokens used (all real, defined by the customizer):
 *   --color-primary       brand colour
 *   --color-bg-soft       soft surface tint (mega menu, mobile menu hovers)
 *   --color-border        hairline divider
 */

#bw-energy-panel {
    box-sizing: border-box;
    width: 100%;
    /* No horizontal padding/margin. Top/bottom margin matches the
       shared section header rhythm (4rem top, 2rem bottom) so sections
       breathe consistently across the site. */
    margin: 4rem 0 2rem;
    padding: 0;
    background: transparent;
    /* 2-column layout — icon track 160px, body 1fr. */
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 36px;
    align-items: center;
}
#bw-energy-panel *,
#bw-energy-panel *::before,
#bw-energy-panel *::after {
    box-sizing: border-box;
}

/* ============================================================
   Icon — visual hero
   ============================================================ */
#bw-energy-panel .bw-energy__icon {
    width: 160px;
    height: auto;
    /* Slight tilt for editorial feel — matches the tarot card */
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
}
#bw-energy-panel .bw-energy__icon:hover {
    transform: rotate(0deg);
}
#bw-energy-panel .bw-energy__icon img,
#bw-energy-panel .bw-energy__icon svg {
    display: block;
    width: 100%;
    height: auto;
    /* Soft shadow gives the icon visual lift */
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
    border-radius: 8px;
}

/* ============================================================
   Body column
   ============================================================ */
#bw-energy-panel .bw-energy__body {
    min-width: 0;
}

/* Eyebrow — small letterspaced uppercase in palette-primary.
   "Vibration of the day · 22 · Twenty-Two" — number folds in here,
   replacing the legacy right-hand widget. */
#bw-energy-panel .bw-energy__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 10px;
    line-height: 1.4;
}
#bw-energy-panel .bw-energy__eyebrow-sep {
    margin: 0 6px;
    opacity: 0.5;
}

/* Title — uses theme h2 styling for the display feel. Theme drives
   the font family (Poppins). */
#bw-energy-panel .bw-energy__title {
    margin: 0 0 14px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.05;
    color: inherit;
}

/* Keywords — palette-tinted pills.
   Same recipe as branwell-tarot: --color-bg-soft for background,
   --color-primary for text, --color-border for hairline. */
#bw-energy-panel .bw-energy__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}
#bw-energy-panel .bw-energy__keyword {
    display: inline-block;
    padding: 4px 14px;
    background: var(--color-bg-soft);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Description — fills the full right column width. No max-width cap. */
#bw-energy-panel .bw-energy__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: inherit;
    opacity: 0.8;
}
#bw-energy-panel .bw-energy__description p {
    margin: 0 0 0.8em;
}
#bw-energy-panel .bw-energy__description p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Error / empty state
   ============================================================ */
#bw-energy-panel .bw-energy__error,
.bw-energy__error {
    margin: 0;
    padding: 1rem 0;
    color: inherit;
    opacity: 0.6;
    font-size: 0.95rem;
}

/* ============================================================
   Responsive — stack vertically below tablet
   ============================================================ */
@media (max-width: 768px) {
    #bw-energy-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
        margin-top: 2.5rem;
    }
    #bw-energy-panel .bw-energy__icon {
        width: 130px;
        transform: rotate(-1deg);
    }
    #bw-energy-panel .bw-energy__title {
        font-size: 1.65rem;
    }
}
@media (max-width: 480px) {
    #bw-energy-panel .bw-energy__icon {
        width: 110px;
    }
    #bw-energy-panel .bw-energy__title {
        font-size: 1.45rem;
    }
    #bw-energy-panel .bw-energy__eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.14em;
    }
}
