/* Custom styles for Waelese app */

/* Theme Transition for smooth switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Light Theme Overrides */
[data-bs-theme="light"] body {
    background-color: #f8f9fa;
    color: #212529;
}

[data-bs-theme="light"] .bg-image-container {
    opacity: 0.15;
}

[data-bs-theme="light"] .navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

[data-bs-theme="light"] .navbar-brand,
[data-bs-theme="light"] .nav-link {
    color: #212529 !important;
}

[data-bs-theme="light"] .nav-link:hover {
    color: #0d6efd !important;
}

[data-bs-theme="light"] .footer {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-top: 1px solid #dee2e6;
}

[data-bs-theme="light"] .footer a {
    color: #212529 !important;
}

[data-bs-theme="light"] .footer a:hover {
    color: #0d6efd !important;
}

[data-bs-theme="light"] .card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    color: #212529;
}

[data-bs-theme="light"] .bg-dark {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .bg-dark .card-body {
    background-color: #ffffff !important;
}

[data-bs-theme="light"] .hero {
    background-color: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="light"] .payment-info {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #dee2e6;
}

[data-bs-theme="light"] .reference-number {
    background-color: rgba(248, 249, 250, 0.95);
    color: #212529;
}

[data-bs-theme="light"] .featured-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    color: #212529;
}

[data-bs-theme="light"] .featured-content::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

[data-bs-theme="light"] .featured-icon-container {
    background-color: rgba(248, 249, 250, 0.9);
}

[data-bs-theme="light"] .network-status-text {
    color: #6c757d;
}

[data-bs-theme="light"] .network-status-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Light Theme Form Controls */
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background-color: #ffffff;
    border-color: #ced4da;
    color: #212529;
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    background-color: #ffffff;
    border-color: #86b7fe;
    color: #212529;
}

[data-bs-theme="light"] .form-control::placeholder {
    color: #6c757d;
}

[data-bs-theme="light"] .form-label,
[data-bs-theme="light"] label {
    color: #212529;
}

[data-bs-theme="light"] .form-text,
[data-bs-theme="light"] small,
[data-bs-theme="light"] .text-muted {
    color: #6c757d !important;
}

[data-bs-theme="light"] .card-body,
[data-bs-theme="light"] .card-text,
[data-bs-theme="light"] .card p {
    color: #212529;
}

[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
    color: #212529;
}

[data-bs-theme="light"] .accordion-button {
    background-color: #ffffff;
    color: #212529;
}

[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
}

[data-bs-theme="light"] .accordion-body {
    background-color: #ffffff;
    color: #212529;
}

[data-bs-theme="light"] .form-check-label {
    color: #212529;
}

[data-bs-theme="light"] .alert {
    border-color: #dee2e6;
}

/* Light Theme Button Overrides */
[data-bs-theme="light"] .btn-outline-light {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

[data-bs-theme="light"] .btn-outline-light:hover {
    color: #ffffff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

[data-bs-theme="light"] .btn-outline-light:focus {
    color: #ffffff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Theme Toggle Button Styling */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle i {
    color: #ffc107;
}

[data-bs-theme="light"] .theme-toggle i {
    color: #0d6efd;
}

/* Network Status Alert Styling */
.network-status-alert {
    width: 100%;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.network-status-alert.alert-danger {
    background-color: #6d1a22;
    border-left: 5px solid #ff6b7a;
    color: #ffffff;
}

.network-status-alert.alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
    border-left: 5px solid var(--bs-warning);
    color: var(--bs-warning);
}

.network-status-alert.alert-info {
    background-color: rgba(13, 202, 240, 0.15);
    border-left: 5px solid var(--bs-info);
    color: var(--bs-info);
}

.network-status-details {
    font-size: 0.9rem;
}

.status-updates-list {
    list-style-type: none;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.status-updates-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.status-updates-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    font-weight: bold;
}

.status-updates-list li:last-child {
    margin-bottom: 0;
}

.network-status-timestamp {
    font-size: 0.8rem;
    text-align: right;
}

/* Network Status Icon in Nav */
.network-status-link {
    display: flex;
    align-items: center;
    padding: 0.35rem;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.network-status-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.network-status-indicator {
    margin-left: auto;
    margin-right: 1rem;
}

.network-status-container {
    display: flex;
    align-items: center;
}

.network-status-text {
    font-size: 0.85rem;
    margin-right: 0.5rem;
    color: #adb5bd;
}

/* Responsive adjustments for network status */
@media (max-width: 576px) {
    .network-status-text {
        font-size: 0.75rem;
    }
    
    .network-status-indicator {
        margin-right: 0.5rem;
    }
}

/* Animation for caution icon */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.network-status-link img[src*="caution-icon.svg"] {
    animation: pulse 2s infinite;
}

/* Featured Carousel Styling */
.featured-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.featured-heading:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--bs-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

#featuredCarousel {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

#featuredCarousel .carousel-indicators {
    bottom: -5px;
}

#featuredCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--bs-secondary);
    opacity: 0.5;
}

#featuredCarousel .carousel-indicators button.active {
    background-color: var(--bs-primary);
    opacity: 1;
}

/* Improve featured carousel navigation arrows visibility */
#featuredCarousel .carousel-control-prev-icon,
#featuredCarousel .carousel-control-next-icon {
    background-color: var(--bs-primary);
    border-radius: 50%;
    padding: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.9;
}

.featured-card {
    background-color: var(--bs-dark);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-card-body {
    padding: 1.5rem;
}

.featured-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.featured-content {
    font-size: 0.95rem;
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.featured-content.expanded {
    max-height: none;
    overflow: visible;
}

.read-more-btn {
    position: relative;
    display: block;
    text-align: right;
    margin-top: 5px;
}

.featured-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(33, 37, 41, 0), rgba(33, 37, 41, 1));
}

.featured-content.expanded::after {
    display: none;
}

.featured-icon-container {
    background-color: rgba(33, 37, 41, 0.8);
    min-height: 200px;
}

/* Make carousel slide right to left */
#featuredCarousel .carousel-item-next:not(.carousel-item-start),
#featuredCarousel .active.carousel-item-end {
    transform: translateX(100%);
}

#featuredCarousel .carousel-item-prev:not(.carousel-item-end),
#featuredCarousel .active.carousel-item-start {
    transform: translateX(-100%);
}

/* Footer styling */
.footer {
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Add some spacing to body to prevent footer overlap */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000000;
    position: relative;
}

/* Create a separate container for the background image with opacity */
.bg-image-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/waelese-swoosh.png');
    background-repeat: no-repeat;
    background-position: 90% 2%;
    background-size: 75%;
    opacity: 0.7; /* 70% opacity (30% transparent) */
    z-index: -1;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Card styling */
.card {
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
    background-color: rgba(33, 37, 41, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Hero section styling */
.hero {
    padding: 4rem 0;
    background-color: rgba(33, 37, 41, 0.8);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Contact form styling */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Custom button styling */
.btn-waelese {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-waelese:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: white;
}

/* FAQ Detail Page Styling */
.faq-detail-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--bs-body-color);
}

.faq-detail-content h1, 
.faq-detail-content h2, 
.faq-detail-content h3, 
.faq-detail-content h4, 
.faq-detail-content h5, 
.faq-detail-content h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-detail-content h4 {
    font-size: 1.1rem;
}

.faq-detail-content p {
    margin-bottom: 1rem;
}

.faq-detail-content ul, 
.faq-detail-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq-detail-content li {
    margin-bottom: 0.5rem;
}

.faq-detail-content strong {
    font-weight: 600;
}

.faq-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

/* Payment reference styling */
.payment-info {
    background-color: rgba(33, 37, 41, 0.8);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.reference-number {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem;
    background-color: rgba(52, 58, 64, 0.8);
    border-radius: 0.25rem;
    margin: 1rem 0;
}

/* Account Carousel Styling */
#accountCarousel .carousel-item {
    padding: 10px;
}

#accountCarousel .carousel-control-prev,
#accountCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#accountCarousel .carousel-control-prev {
    left: -20px;
}

#accountCarousel .carousel-control-next {
    right: -20px;
}

#accountCarousel .carousel-control-prev:hover,
#accountCarousel .carousel-control-next:hover {
    opacity: 1;
}

#accountCarousel .carousel-indicators {
    bottom: -10px;
    margin-bottom: 0;
}

#accountCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

@media (max-width: 768px) {
    #accountCarousel .carousel-control-prev {
        left: 0;
    }

    #accountCarousel .carousel-control-next {
        right: 0;
    }
}

/* ============================================================
   WAELESE BRAND LAYER  (Futuristic Dark — see waelese-brand skill)
   Added June 2026. Brand tokens, embedded fonts and accents layered
   on top of Bootstrap without changing component structure.
   ============================================================ */

/* --- Embedded brand fonts (never rely on system fonts) --- */
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/sg-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/sg-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/sg-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('../fonts/orb-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('../fonts/orb-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

/* --- Brand tokens + re-point Bootstrap primary to brand pink --- */
:root {
    --wl-navy: #1F2A63;
    --wl-pink: #FF2E68;
    --wl-pink-deep: #D6215B;
    --wl-cyan: #3DE8FF;
    --wl-ink: #F2F5FF;
    --wl-dim: #9AA6D4;

    --bs-primary: #FF2E68;
    --bs-primary-rgb: 255, 46, 104;
    --bs-link-color: #FF2E68;
    --bs-link-color-rgb: 255, 46, 104;
    --bs-link-hover-color: #FF5C8C;
    --bs-body-font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- Dark theme: deep-space gradient background (replaces flat black) --- */
[data-bs-theme="dark"] body {
    background: linear-gradient(160deg, #0A0F2E 0%, #131B47 55%, #1B2554 100%) fixed;
    color: var(--wl-ink);
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Tone down the swoosh watermark so it doesn't fight the gradient */
[data-bs-theme="dark"] .bg-image-container { opacity: 0.10; }

/* Headings + brand in Space Grotesk 700 */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navbar + footer: translucent navy glass over the gradient */
[data-bs-theme="dark"] .navbar.bg-dark {
    background-color: rgba(10, 15, 46, 0.72) !important;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(61, 232, 255, 0.18);
}
[data-bs-theme="dark"] .footer.bg-dark {
    background-color: rgba(10, 15, 46, 0.72) !important;
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 46, 104, 0.25);
}

/* Cards: glassy navy panels with a faint hairline */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .featured-card {
    background-color: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(4px);
}

/* Primary buttons → brand pink */
.btn-primary {
    --bs-btn-bg: var(--wl-pink);
    --bs-btn-border-color: var(--wl-pink);
    --bs-btn-hover-bg: var(--wl-pink-deep);
    --bs-btn-hover-border-color: var(--wl-pink-deep);
    --bs-btn-active-bg: var(--wl-pink-deep);
    --bs-btn-active-border-color: var(--wl-pink-deep);
    --bs-btn-focus-shadow-rgb: 255, 46, 104;
}

/* Brand CTA gradient on the existing .btn-waelese helper */
.btn-waelese {
    background: linear-gradient(120deg, #FF2E68, #D6215B);
    border: none;
    color: #fff;
    font-weight: 700;
}
.btn-waelese:hover {
    background: linear-gradient(120deg, #FF5C8C, #FF2E68);
    border: none;
    color: #fff;
}

/* Logo theme-swap: white on dark, colour on light */
.wl-logo { display: inline-block; }
.wl-logo-light { display: none; }
[data-bs-theme="light"] .wl-logo-dark { display: none; }
[data-bs-theme="light"] .wl-logo-light { display: inline-block; }

/* Opt-in Orbitron tech accents (per brand spec — small uppercase only) */
.wl-tech-label {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: var(--wl-cyan);
}
.wl-tech-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border: 1px solid rgba(61, 232, 255, 0.45);
    border-radius: 20px;
    background: rgba(61, 232, 255, 0.06);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.65rem;
    color: var(--wl-cyan);
}

/* Section underline accent → brand pink */
.featured-heading:after { background-color: var(--wl-pink); }

/* Footer link hover → cyan on dark */
[data-bs-theme="dark"] .footer.bg-dark a.text-white:hover { color: var(--wl-cyan) !important; }

/* ============================================================
   LANDING HERO (flyer-inspired) — fibre/hub graphic, chips, steps
   ============================================================ */

.wl-hero { position: relative; padding: 2.25rem 0 0; text-align: center; }
.wl-hero .wl-tech-tag { margin-bottom: 1.1rem; }

.wl-headline {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.0;
    font-size: clamp(2.4rem, 8vw, 4rem);
    margin: 0 0 1rem;
}
.wl-headline .pk { color: var(--wl-pink); }

.wl-subline {
    font-size: clamp(1rem, 3.2vw, 1.2rem);
    color: var(--wl-dim);
    font-weight: 500;
    margin: 0 auto 1.4rem;
    max-width: 540px;
}
.wl-subline b { color: var(--wl-ink); font-weight: 700; }

.wl-hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* the fibre -> hub band graphic (inline SVG, scales with viewBox) */
.wl-hero-graphic { width: 100%; max-width: 820px; margin: 0.75rem auto -0.5rem; display: block; pointer-events: none; }
.wl-hero-graphic svg { width: 100%; height: auto; display: block; }

/* ---- Benefit chips (2x2, glassy) ---- */
.wl-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; max-width: 720px; margin: 1.75rem auto; }
.wl-chip {
    display: flex; align-items: center; gap: 0.9rem;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px; padding: 1rem 1.1rem;
}
.wl-chip .dot {
    width: 40px; height: 40px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, rgba(255, 46, 104, .55), rgba(255, 46, 104, .12) 70%);
    border: 1px solid rgba(255, 46, 104, .55);
}
.wl-chip:nth-child(even) .dot {
    background: radial-gradient(circle at 35% 30%, rgba(61, 232, 255, .45), rgba(61, 232, 255, .1) 70%);
    border-color: rgba(61, 232, 255, .5);
}
.wl-chip .dot svg { width: 20px; height: 20px; }
.wl-chip h4 { font-weight: 700; font-size: 1rem; margin: 0; }
.wl-chip p { font-size: .85rem; color: var(--wl-dim); margin: .1rem 0 0; }

/* ---- Connected in 4 steps ---- */
.wl-steps-wrap { max-width: 640px; margin: 2.25rem auto; text-align: center; }
.wl-steps-label {
    font-family: 'Orbitron', monospace; font-weight: 600;
    letter-spacing: 2px; font-size: .7rem; color: var(--wl-dim);
    text-transform: uppercase; margin-bottom: 1.25rem;
}
.wl-steps { display: flex; align-items: flex-start; justify-content: center; }
.wl-snode { flex: none; width: 70px; }
.wl-snode .c {
    width: 44px; height: 44px; margin: 0 auto; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: #fff;
    background: radial-gradient(circle at 35% 30%, #FF5C8C, #C11A50 75%);
    border: 1px solid rgba(255, 120, 160, .8);
}
.wl-snode.cy .c { background: radial-gradient(circle at 35% 30%, #6FF0FF, #0E7E97 78%); border-color: rgba(140, 240, 255, .8); color: #04243a; }
.wl-snode h5 { margin-top: .6rem; font-weight: 700; font-size: .85rem; }
.wl-slink { flex: 1; height: 2px; margin: 21px 4px 0; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 46, 104, .85), rgba(61, 232, 255, .85)); }
.wl-slink.r { background: linear-gradient(90deg, rgba(61, 232, 255, .85), rgba(255, 46, 104, .85)); }

@media (max-width: 480px) {
    .wl-chips { grid-template-columns: 1fr; }
    .wl-snode { width: 58px; }
    .wl-snode .c { width: 38px; height: 38px; font-size: 1rem; }
    .wl-snode h5 { font-size: .72rem; }
    .wl-slink { margin-top: 18px; }
}

/* ---- Terms & Conditions list ---- */
.wl-terms-list { padding-left: 1.2rem; }
.wl-terms-list li { margin-bottom: 0.6rem; line-height: 1.55; }
.wl-terms-list li::marker { color: var(--wl-pink); font-weight: 700; }