/**
 * Astroscriba - global frontend styles.
 *
 * Loaded on every page that renders any astrology UI (results page, dashboard,
 * edit form, etc.). Add new shared styles here rather than inlining them in PHP.
 *
 * Sections:
 *   1. Buttons (.astro-btn / .astro-btn-outline / .astro-btn-danger)
 */

/* ============================================================
   1. BUTTONS
   ----
   Three variants - all share the same dimensions, only colours differ.
     .astro-btn         - filled primary CTA   (Save, View, Sign in, Add)
     .astro-btn-outline - outlined secondary   (Cancel, Edit, Edit data)
     .astro-btn-danger  - destructive          (Delete chart)

   Hover: lift up 2px + drop shadow. Colours stay locked under all
   interactive states (see the consolidated colour rules below) so theme
   defaults like `a:hover { color: ... }` cannot override them.
   ============================================================ */

.astro-btn,
.astro-btn-outline,
.astro-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 35px !important;
    margin: 0 !important;
    font-size: .85rem !important;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0 12px 0 12px;
    line-height: 1 !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    vertical-align: middle;
    transition: transform .15s ease, box-shadow .15s ease;
}

/* Lift-up hover - colours stay unchanged */
.astro-btn:hover,
.astro-btn-outline:hover,
.astro-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.astro-btn:active,
.astro-btn-outline:active,
.astro-btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

/* ============================================================
   BUTTON COLOURS - locked across every interactive state.
   Edit values here to recolour buttons globally.
   ============================================================ */

/* Primary CTA */
.astro-btn,
a.astro-btn,
.astro-btn:hover,         a.astro-btn:hover,
.astro-btn:focus,         a.astro-btn:focus,
.astro-btn:active,        a.astro-btn:active,
.astro-btn:visited,       a.astro-btn:visited {
    background: #581934 !important;
    color: #c9a050 !important;
    border: 1px solid #581934 !important;
    text-decoration: none !important;
}

/* Outlined secondary */
.astro-btn-outline,
a.astro-btn-outline,
.astro-btn-outline:hover,  a.astro-btn-outline:hover,
.astro-btn-outline:focus,  a.astro-btn-outline:focus,
.astro-btn-outline:active, a.astro-btn-outline:active,
.astro-btn-outline:visited,a.astro-btn-outline:visited {
    background: transparent !important;
    color: #c9a050 !important;
    border: 1px solid #c9a050 !important;
    text-decoration: none !important;
}

/* Destructive */
.astro-btn-danger,
a.astro-btn-danger,
.astro-btn-danger:hover,   a.astro-btn-danger:hover,
.astro-btn-danger:focus,   a.astro-btn-danger:focus,
.astro-btn-danger:active,  a.astro-btn-danger:active,
.astro-btn-danger:visited, a.astro-btn-danger:visited {
    background: transparent !important;
    color: #c0392b !important;
    border: 1px solid #c0392b !important;
    text-decoration: none !important;
}

/* ============================================================
   2. CHART PICKER (Showing chart for: dropdown)
   ----
   The dropdown lives on /results/ - selects a saved chart.
   Theme commonly styles <select> in ways that fight us, so all
   visual properties are pinned with !important.
   ============================================================ */

select.astro-chart-picker {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #581934 !important;
    border-radius: 4px !important;
    padding: 0 32px 0 12px !important;
    height: 36px !important;
    font-size: .85rem !important;
    font-family: 'Quicksand', sans-serif !important;
    cursor: pointer !important;
    flex: 1 1 auto;
    min-width: 300px;
    box-sizing: border-box !important;
    line-height: normal !important;
}
select.astro-chart-picker option {
    background-color: #000 !important;
    color: #fff !important;
}

/* Small "Edit data" link sitting right next to the picker.
   Matches the visual style of the orb-link / link-values pills
   in the filter bar - same colours, same dimensions. */
.astro-chart-picker-btn,
a.astro-chart-picker-btn,
.astro-chart-picker-btn:hover,   a.astro-chart-picker-btn:hover,
.astro-chart-picker-btn:focus,   a.astro-chart-picker-btn:focus,
.astro-chart-picker-btn:active,  a.astro-chart-picker-btn:active,
.astro-chart-picker-btn:visited, a.astro-chart-picker-btn:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #581934 !important;
    color: #c9a050 !important;
    border: 1px solid #581934 !important;
    border-radius: 4px !important;
    padding: 0 10px !important;
    height: 36px !important;
    box-sizing: border-box !important;
    font-size: .72rem !important;
    cursor: pointer !important;
    font-family: 'Quicksand', sans-serif !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

/* ============================================================
   Custom scrollbar for the chart aside panel.
   Matches the chart palette: dark bg with bordo (#581934) thumb
   that lights up to gold (#c9a050) on hover. Works in:
     - Firefox via scrollbar-width / scrollbar-color
     - Chromium / Safari via ::-webkit-scrollbar
   ============================================================ */
.astro-chart-aside {
    /* Firefox: thin track + custom colors (thumb track) */
    scrollbar-width: thin;
    scrollbar-color: #581934 #0a0a18;
}
.astro-chart-aside::-webkit-scrollbar {
    width: 8px;
}
.astro-chart-aside::-webkit-scrollbar-track {
    background: #0a0a18;
    border-radius: 4px;
}
.astro-chart-aside::-webkit-scrollbar-thumb {
    background: #581934;
    border-radius: 4px;
    border: 1px solid #0a0a18;
}
.astro-chart-aside::-webkit-scrollbar-thumb:hover {
    background: #c9a050;
}

/* ============================================================
   Override Elementor / theme defaults that paint table headers
   white. Inside our results pages we want THEAD to use a slightly
   lighter navy than the row background, so the header reads as
   a header without being harsh white-on-black. Targets every
   table that lives inside an .astro-tab-panel or
   .astro-subtab-panel.
   ============================================================ */
.astro-tab-panel table thead,
.astro-tab-panel table thead tr,
.astro-tab-panel table thead th,
.astro-subtab-panel table thead,
.astro-subtab-panel table thead tr,
.astro-subtab-panel table thead th {
    background: #14142a !important;
    background-color: #14142a !important;
    color: #939393 !important;
}

/* Body rows in all astro tables - subtle navy fill so the row reads as
   a card instead of bare text on black, matching the Dignities table. */
.astro-tab-panel table tbody tr,
.astro-subtab-panel table tbody tr {
    background: #0a0a18 !important;
    background-color: #0a0a18 !important;
}

/* ============================================================
   Main results tabs (Main Points & Planets / House Cusps / etc).
   Inactive tabs are flat dim grey on the page background.
   The active tab is a bordo-filled pill with a gold label and
   a top-right rounded corner for a kreatywny touch (matches
   the user's preferred mockup).

   !important is necessary throughout - the theme (augury / Elementor)
   ships its own button styles that otherwise add borders, rounded
   corners, larger fonts, and lose text-transform.
   ============================================================ */
.astro-tab-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #888 !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    font-size: .78rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: 'Quicksand', sans-serif !important;
    transition: background .2s ease, color .2s ease !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    float: none !important;
}
.astro-tab-btn:hover,
.astro-tab-btn:focus {
    color: #c9a050 !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
}
.astro-tab-btn.active,
.astro-tab-btn.active:hover,
.astro-tab-btn.active:focus {
    background: #4e1a31 !important;
    background-color: #4e1a31 !important;
    color: #c9a050 !important;
    border-radius: 0 10px 0 0 !important;
}

/* ============================================================
   Section tabs (top-level: Astrology / Matrix / Numerology).
   Same layout as astro-tab-btn but Cinzel font at 1rem.
   ============================================================ */
.astro-section-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #888 !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    font-size: 1rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: 'Cinzel', sans-serif !important;
    transition: background .2s ease, color .2s ease !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    float: none !important;
}
.astro-section-btn:hover,
.astro-section-btn:focus {
    color: #c9a050 !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
}
.astro-section-btn.active,
.astro-section-btn.active:hover,
.astro-section-btn.active:focus {
    background: #4e1a31 !important;
    background-color: #4e1a31 !important;
    color: #c9a050 !important;
    border-radius: 0 10px 0 0 !important;
}


.astro-subtab-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    color: #888 !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    font-size: .72rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: 'Quicksand', sans-serif !important;
    transition: color .2s ease !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    float: none !important;
}
.astro-subtab-btn::before {
    content: "\25B8";              /* right-pointing small triangle */
    display: inline-block;
    font-size: .85rem;
    line-height: 1;
    transition: transform .15s ease;
}
.astro-subtab-btn.active::before {
    content: "\25BE";              /* down-pointing small triangle */
}
.astro-subtab-btn:hover,
.astro-subtab-btn:focus {
    color: #c9a050 !important;
    outline: none !important;
}
.astro-subtab-btn.active,
.astro-subtab-btn.active:hover,
.astro-subtab-btn.active:focus {
    color: #c9a050 !important;
}

/* ============================================================
   DEATH-TOPICS CONTENT GATE (Point of Death / Death Almuten)
   ----
   The reveal/decline buttons live inside a content-warning box.
   The Point of Death gate lives inside a <table>, where the
   augury / Elementor theme's table-button rules win specificity
   against plain .astro-btn (theme adds pill-shaped border-radius
   and its own padding). We pin the asymmetric corner shape and
   sizing explicitly here so the gate buttons match every other
   .astro-btn on the site regardless of where they're rendered.
   ============================================================ */
.astro-death-gate .astro-btn,
.astro-death-gate .astro-btn-outline,
.astro-death-gate .astro-btn-danger,
.astro-death-gate button.astro-btn,
.astro-death-gate button.astro-btn-outline,
.astro-death-gate button.astro-btn-danger {
    border-radius: 0 12px 0 12px !important;
    padding: 15px 35px !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    font-family: 'Quicksand', sans-serif !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    height: auto !important;
    min-height: 0 !important;
}
