/* ==========================================================================
   REELEX PREMIUM INTERNAL PAGES STYLES
   Description: Overrides for all internal pages (excluding Home) to ensure 
   visibility, premium feel, and correct layout stacking.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CORE VISIBILITY & CONTRAST FIXES
   -------------------------------------------------------------------------- */
body {
    color: #1a1a2e; /* Dark Blue/Black text for readability */
    background-color: #f8f9fa; /* Light background base */
}

/* Ensure text is visible on light backgrounds */
p, li, span, div {
    color: inherit; /* Inherit form body unless overridden */
}

/* Force dark text for headings unless explicitly white */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #0a0a2e; 
}

/* Helper class for explicitly white text (e.g. over dark hero sections) */
.text-white {
    color: #ffffff !important;
}
.text-white p, .text-white span, .text-white h1, .text-white h2, .text-white h3 {
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. STICKY SIDEBAR & HEADER FIXES
   -------------------------------------------------------------------------- */
/* Header Z-Index - Ensuring it stays on top */
.frontend-header {
    z-index: 1050 !important;
    position: absolute; /* Changed to absolute to overlay hero */
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}
.frontend-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* Ensure visibility when sticky */
}

/* Sidebar Z-Index - Lower than header */
.sticky-top, .marketing-sidebar, .blog-sidebar {
    z-index: 900 !important;
    top: 100px !important;
}

/* Prevent sidebar overlapping footer if needed */
main#main-content {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   3. PREMIUM ANIMATIONS & EFFECTS
   -------------------------------------------------------------------------- */

/* Ultra Fade In Up */
@keyframes ultraFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.anim-fade-up {
    animation: ultraFadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Floating Animation */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.anim-float {
    animation: floatY 6s ease-in-out infinite;
}

/* Shimmer Effect for Texts */
.text-shimmer-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
    font-weight: 800;
}
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --------------------------------------------------------------------------
   4. GLASSMORPHISM & CARDS SYSTEM
   -------------------------------------------------------------------------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 20px;
}

.card-ultra {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.card-ultra:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 49, 146, 0.12);
    border-color: rgba(46, 49, 146, 0.1);
}

/* --------------------------------------------------------------------------
   5. BUTTONS ULTRA
   -------------------------------------------------------------------------- */
.btn-ultra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-ultra-primary {
    background: linear-gradient(135deg, #2e3192 0%, #1a1a2e 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(46, 49, 146, 0.3);
}

.btn-ultra-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 49, 146, 0.4);
}

.btn-ultra-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2e3192 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-ultra-primary:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION DEFAULTS (Internal Pages)
   -------------------------------------------------------------------------- */
.hero-internal-ultra {
    position: relative;
    background: #0f0c29;  /* fallback */
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e); 
    padding: 240px 0 100px; /* Massive top padding to clear the absolute header */
    margin-top: 0; /* Reset margin since header is absolute */
    color: white;
    overflow: hidden;
}

.hero-internal-ultra::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(46, 49, 146, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(243, 156, 18, 0.2) 0%, transparent 40%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb-ultra .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}
.breadcrumb-ultra .breadcrumb-item a:hover {
    color: #f39c12;
}
.breadcrumb-ultra .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}
