/* ============================================================
   Quranic Insights - Shared Styles
   Extracted from inline CSS across all pages for consistency
   ============================================================ */

/* ---- Hover Effects ---- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
}

/* ---- Glass Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ---- Rank Circle (character explorer) ---- */
.rank-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rank-number {
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ---- Pulse Dot (live indicators) ---- */
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-animation 1.5s ease-in-out infinite;
}
@keyframes pulse-animation {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---- Category Tag ---- */
.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    gap: 4px;
}

/* ---- Character Item (explorer list) ---- */
.character-item {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
}
.character-item:hover {
    background: rgba(0, 74, 173, 0.03);
    border-color: rgba(0, 74, 173, 0.15);
    transform: translateX(4px);
}

/* ---- Insight Card ---- */
.insight-card {
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.03) 0%, rgba(203, 108, 230, 0.03) 100%);
    border: 1px solid rgba(203, 108, 230, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}
.insight-card:hover {
    border-color: rgba(203, 108, 230, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ---- Cytoscape Legend ---- */
.cyto-legend {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.8rem;
}
.cyto-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.cyto-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Verse Link ---- */
.verse-link {
    color: #004aad;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.verse-link:hover {
    color: #cb6ce6;
    text-decoration: underline;
}

/* ---- Character Link ---- */
.character-link {
    color: #9B59B6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.character-link:hover {
    color: #004aad;
    text-decoration: underline;
}

/* ---- Tab Styling ---- */
.nav-tabs .nav-link.active {
    color: #004aad !important;
    font-weight: 600;
    border-bottom: 3px solid #004aad !important;
}
.nav-tabs .nav-link {
    color: #666;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.nav-tabs .nav-link:hover {
    color: #004aad;
    border-bottom-color: rgba(0, 74, 173, 0.3);
}

/* ---- Graph Card Header ---- */
.graph-card-header {
    border-bottom-width: 2px;
    border-bottom-style: solid;
    background: transparent;
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.05) 0%, rgba(203, 108, 230, 0.08) 100%);
    padding: 30px 20px;
    border-radius: 15px;
    border: 2px solid rgba(203, 108, 230, 0.2);
    margin-bottom: 25px;
}

/* ---- Gauge Row ---- */
.gauge-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.gauge-row > * {
    flex: 1;
    min-width: 200px;
}

/* ---- Navbar Dropdown Styling ---- */
.navbar .dropdown-menu {
    background: #2C3E50;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 8px;
    min-width: 200px;
}
.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 8px 15px;
    transition: all 0.2s;
}
.navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
}
.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ---- Dropdown & Slider Text Readability ---- */
.dash-dropdown .Select-value-label,
.dash-dropdown .Select-input > input,
.dash-dropdown .Select-option,
.dash-dropdown .Select-noresults {
    color: #2C3E50 !important;
}
.dash-dropdown .Select-placeholder {
    color: #888 !important;
}
.dash-dropdown .Select-menu-outer {
    background: white !important;
}
.rc-slider-mark-text {
    color: #555 !important;
}
.rc-slider-mark-text-active {
    color: #2C3E50 !important;
}

/* Ensure radio / checklist labels are dark */
.form-check-label {
    color: #2C3E50;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .hero-section {
        padding: 20px 15px;
    }
    .gauge-row > * {
        min-width: 150px;
    }
    .rank-circle {
        width: 26px;
        height: 26px;
    }
    .rank-number {
        font-size: 0.7rem;
    }
}
