/**
 * BnB Definition — Bracket card style
 *
 * Usage in Elementor:
 *   1. Add a Blockquote widget.
 *   2. Quote text  → definition body.
 *   3. Author/Cite → term being defined.
 *   4. Advanced tab → CSS Classes → bnb-definition
 *   5. Set widget Skin to "None / Plain".
 *
 * @package BrineAndBloom
 */

/* ============================================================
   BOX — green frame created by container padding
   ============================================================ */

.bnb-definition .elementor-widget-container {
    background-color: #6FA24C;
    padding: 20px;
    border-radius: 4px;
    box-sizing: border-box;
    transform-style: preserve-3d;
    perspective: 2000px;
    transition: .4s;
}

/* ============================================================
   TEXT PANEL — dark grey inner block (normal document flow)
   ============================================================ */

.bnb-definition .elementor-blockquote {
    display: flex;
    flex-direction: column;
    background-color: #3d3d3d;
    padding: 1.5rem 2rem;
    margin: 0;
    border-radius: 3px;
    transition: .4s;

    /* reset Elementor blockquote defaults */
    border: none;
    border-left: none;
    box-shadow: none;
}

/* Opening quote mark — top-left of panel */
.bnb-definition .elementor-blockquote::before {
    content: '\201C';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #6FA24C;
    color: #1F2A24;
    font-size: 26px;
    font-style: normal;
    z-index: 2;
}

/* Closing quote mark — bottom-right of panel */
.bnb-definition .elementor-blockquote::after {
    content: '\201D';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #6FA24C;
    color: #1F2A24;
    font-size: 26px;
    font-style: normal;
    z-index: 2;
}

/* ============================================================
   TERM  (author / cite — rendered first via flex order)
   ============================================================ */

.bnb-definition .elementor-blockquote__footer {
    order: -1;
    margin: 0 0 0.6rem;
    padding: 0;
    border: none;
}

.bnb-definition .elementor-blockquote__footer::before {
    display: none;
}

.bnb-definition .elementor-blockquote__author {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    font-style: normal;
    color: #8DBF6A;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.bnb-definition .elementor-blockquote__tweet-button {
    display: none;
}

.bnb-definition .elementor-blockquote__quote-icon {
    display: none;
}

/* ============================================================
   DEFINITION BODY
   ============================================================ */

.bnb-definition .elementor-blockquote__content {
    margin: 0;
    padding: 0;
    border: none;
    border-left: none;
    order: 0;
}

.bnb-definition .elementor-blockquote__content p {
    color: #fff;
    font-size: 0.92em;
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   HOVER — 3D parallax tilt
   ============================================================ */

.bnb-definition:hover .elementor-widget-container {
    transform: rotateY(-15deg) skewY(2deg);
}

.bnb-definition:hover .elementor-blockquote {
    transform: rotateY(15deg) skewY(-2deg);
}
