/* jj-rashifala.css — Rashifala UI: Ethereal Light design system */

/* ── Wrapper ─────────────────────────────────────────── */
.jj-rashifala-wrap {
    max-width: 960px;
    margin: 0 auto 16px;
    font-family: 'Mukta', sans-serif;
}

/* ── Type Tabs (Ethereal Light Premium Segmented Navigation) ── */
.jj-rf-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ead9c8;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(139, 69, 19, 0.06);
    box-sizing: border-box;
}

.jj-rf-tab {
    padding: 8px 24px;
    text-decoration: none;
    color: #6e4a39;
    border-radius: 8px;
    font-family: 'DM Sans', 'Mukta', sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(200, 106, 76, 0.4);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.jj-rf-tab:hover {
    color: #c86a4c;
    background: rgba(200, 106, 76, 0.05);
    border-color: rgba(200, 106, 76, 0.6);
    transform: translateY(-2px);
}

.jj-rf-tab.active {
    background: #c86a4c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(200, 106, 76, 0.25);
    border-color: #c86a4c;
    transform: none;
}

/* ── Rashi Grid ──────────────────────────────────────── */
.jj-rf-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 2 rows of 6 items on desktop */
    gap: 12px;
    margin-bottom: 24px;
}

.jj-rf-rashi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: linear-gradient(180deg, #F7EBDD 0%, #F2E4D3 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, .5),
        0 2px 6px rgba(166, 106, 76, 0.10);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.jj-rf-rashi-item:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 106, 76, 0.3);
    background: linear-gradient(180deg, #fdfaf6 0%, #f7ede2 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, .5),
        0 6px 16px rgba(200, 106, 76, 0.12);
}

.jj-rf-rashi-item.active {
    border-color: #c86a4c;
    background: linear-gradient(180deg, #fdeede 0%, #f5dcc8 100%);
    box-shadow:
        inset 0 1px 3px rgba(255, 255, 255, .6),
        0 6px 20px rgba(200, 106, 76, 0.22);
    transform: translateY(-2px);
}

.jj-rf-rashi-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.jj-rf-rashi-item:hover img {
    transform: scale(1.05);
}

.jj-rf-rashi-name {
    font-size: 18px;
    /* Increased font size for enhanced Odia clarity */
    color: #6e4a39;
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 2px;
}

/* Mobile responsive layout for tabs and grid */
@media (max-width: 767px) {
    .jj-rf-tabs {
        gap: 6px;
        padding: 6px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .jj-rf-tab {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 8px;
        flex: 1 1 calc(50% - 6px);
        text-align: center;
    }

    .jj-rf-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 3 rows of 4 items on mobile */
        gap: 8px;
    }

    .jj-rf-rashi-item {
        padding: 8px 4px;
        gap: 6px;
    }

    .jj-rf-rashi-item img {
        border-radius: 8px;
    }

    .jj-rf-rashi-name {
        font-size: 16px;
        /* Superb touch navigation clarity */
    }
}

/* ── Date Label ──────────────────────────────────────── */
.jj-rf-date-label {
    text-align: center;
    font-size: 18px;
    color: #8B4513;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 6px 8px;
    background: #fdf6ee;
    border-radius: 6px;
    border: 1px solid #e8ddd0;
}

/* ── Content ─────────────────────────────────────────── */
.jj-rf-content-wrap {
    background: #fff;
    border: 1px solid #ead9c8;
    border-top: 3px solid #c86a4c;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 1px 6px rgba(139, 69, 19, 0.06);
    box-sizing: border-box;
}

.jj-rf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px dashed #ead9c8;
}

.jj-rf-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #c86a4c;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.jj-rf-content {
    font-size: 24px;
    line-height: 1.2;
    color: #2c1a0e;
}

.jj-rf-no-content {
    text-align: center;
    color: #a08060;
    padding: 40px 0;
    font-size: 16px;
}

.jj-rf-loading {
    text-align: center;
    padding: 60px 0;
    color: #8B4513;
    font-size: 16px;
    opacity: 0.7;
}

/* ── Akruti Text Utility Classes ─────────────────────── */
.jj-akruti-text {
    font-family: 'akplingaraj', sans-serif;
    font-size: 18pt;
}

.jj-akruti-text-red {
    font-family: 'akplingaraj', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #c86a4c;
    letter-spacing: 0.2px;
}

/* ── Rashi Characteristics (post-content below the widget) ── */

/* All standalone paragraphs outside specific containers get a card style */
.jj-rf-page .entry-content>p {
    background: #fff;
    border: 1px solid #ead9c8;
    border-radius: 10px;
    padding: 10px 14px !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    line-height: 1.6;
    box-shadow: 0 1px 6px rgba(139, 69, 19, 0.06);
    transition: box-shadow 0.2s;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.jj-rf-page .entry-content>p:hover {
    box-shadow: 0 3px 14px rgba(139, 69, 19, 0.13);
}

/* The new single container for characteristics */
.jj-rf-characteristics {
    background: #fff;
    border: 1px solid #ead9c8;
    border-radius: 10px;
    padding: 4px 14px 0px 14px !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
    box-shadow: 0 1px 6px rgba(139, 69, 19, 0.06);
    transition: box-shadow 0.2s;
    /* Optional: constrain to the same max-width as the main widget if it isn't already constrained by the theme */
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    display: block !important;
    /* Override WP block layout gap */
}

.jj-rf-characteristics:hover {
    box-shadow: 0 3px 14px rgba(139, 69, 19, 0.13);
}

/* Style the paragraphs inside the new container */
.jj-rf-characteristics p {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* The first paragraph acts as the heading, let's give it some bottom margin and a border */
.jj-rf-characteristics p:first-of-type {
    margin-bottom: 4px !important;
    padding-bottom: 2px !important;
    border-bottom: 1px dashed #e8ddd0 !important;
}

.jj-rf-characteristics p:last-of-type,
.jj-rf-characteristics p:last-child {
    margin-bottom: 0 !important;
}

/* Hide empty paragraphs injected by WP */
.jj-rf-characteristics p:empty {
    display: none !important;
}

/* Hide trailing breaks that WP sometimes inserts */
.jj-rf-characteristics p br:last-child {
    display: none !important;
}


/* Section headings — accent card style (fallback for other content if needed) */
.jj-rf-page .entry-content>h2:not(.jj-rf-subheading),
.jj-rf-page .entry-content>h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #5a2d0c;
    margin: 2rem 0 1rem;
    padding: 10px 20px 10px 16px;
    background: linear-gradient(135deg, #fdf3e7 0%, #fbe8d3 100%);
    border-left: 4px solid #c0622d;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.10);
    letter-spacing: 0.01em;
    width: auto;
}

/* ── Dynamic H2 Subheading (Plan 07) ────────────────── */
.jj-rf-subheading {
    font-family: 'DM Sans', 'Mukta', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #7a3f1e;
    background: linear-gradient(135deg, #fdf6ee 0%, #fbebd8 100%);
    border: 1px solid #e8d5bc;
    border-left: 3px solid #c86a4c;
    border-radius: 6px;
    padding: 8px 14px;
    margin: 0 0 12px 0;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

@media (max-width: 767px) {
    .jj-rf-subheading {
        font-size: 0.92rem;
        padding: 7px 11px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {

    .jj-rf-page .entry-content>h2:not(.jj-rf-subheading),
    .jj-rf-page .entry-content>h3 {
        font-size: 1.1rem;
        padding: 8px 14px 8px 12px;
    }

    .jj-rf-content-wrap,
    .jj-rf-page .entry-content>p {
        padding: 8px 10px !important;
    }

    .jj-rf-characteristics {
        padding: 4px 10px 0px 10px !important;
    }
}