/* futuristic.css - Light Glassmorphism Theme */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* Global Variables */
:root {
    --neon-cyan: #00ffff;
    --neon-cyan-dim: rgba(0, 255, 255, 0.3);
    --dark-text: #1a1a1a;
    --glass-light: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --neon-glow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Base Body Styles */
body {
    background-color: #f8f9fa; /* Light background base */
    color: var(--dark-text);
}

/* Headings */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Orbitron', 'Inter', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Glassmorphism Cards */
.card, .glass-card {
    background: var(--glass-light) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--neon-cyan) !important;
    border-radius: 0 !important; /* Sharp edges */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 0 10px var(--neon-cyan-dim) !important;
    color: var(--dark-text) !important;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), inset 0 0 15px var(--neon-cyan) !important;
    transform: translateY(-2px);
}

.card-title, .card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--neon-cyan) !important;
    font-weight: 700;
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.baca-berita-title {
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Card Body Alignment Fix */
.card.h-100 .card-body {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body > p.small {
    margin-top: auto !important;
}


/* Buttons */
.btn {
    border-radius: 0 !important; /* Sharp edges */
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary, .btn-primary-custom {
    background-color: var(--dark-text) !important;
    color: var(--neon-cyan) !important;
    border: 1px solid var(--neon-cyan) !important;
    box-shadow: inset 0 0 5px var(--neon-cyan-dim);
}

.btn-primary:hover, .btn-primary-custom:hover {
    background-color: var(--neon-cyan) !important;
    color: var(--dark-text) !important;
    box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 15px rgba(0, 255, 255, 0.8) !important;
}

.btn-outline-primary, .btn-outline-light {
    background-color: transparent !important;
    color: var(--dark-text) !important;
    border: 1px solid var(--dark-text) !important;
}

.btn-outline-primary:hover, .btn-outline-light:hover {
    background-color: var(--dark-text) !important;
    color: var(--neon-cyan) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.navbar .nav-link {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-text) !important;
    transition: color 0.3s, text-shadow 0.3s;
}

.navbar .nav-link:hover {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

/* Badges */
.badge {
    border-radius: 0 !important;
    font-family: 'Orbitron', sans-serif;
    background-color: var(--dark-text) !important;
    color: var(--neon-cyan) !important;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan-dim);
}

/* Inputs / Forms */
.form-control, .form-select {
    border-radius: 0 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid var(--dark-text) !important;
    color: var(--dark-text) !important;
}

.form-control:focus, .form-select:focus {
    background-color: #fff !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 10px var(--neon-cyan-dim) !important;
}

/* Dropdowns */
.dropdown-menu {
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.dropdown-item {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--dark-text);
}

.dropdown-item:hover {
    background-color: var(--neon-cyan);
    color: var(--dark-text);
}

/* Footer Global Styles */
footer {
    background: url('../images/anime/latar_belakang_beranda_bawah.webp') center/cover no-repeat !important;
    color: #000 !important;
    padding: 60px 0 30px;
    font-family: 'Orbitron', 'Inter', sans-serif !important;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.8) !important;
    position: relative;
    border-top: 2px solid #0ff;
}

footer h5 {
    font-weight: 800 !important;
    margin-bottom: 20px;
    color: #000 !important;
    text-transform: uppercase;
}

footer a, footer p, footer span, footer .text-white { 
    color: #000 !important; 
    text-decoration: none !important; 
    transition: all 0.3s; 
    font-weight: 800 !important;
} 

footer a:hover { 
    color: #000 !important; 
    text-decoration: none !important; 
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff !important;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    transition: all 0.3s ease;
    margin-right: 10px;
}


/* === MOBILE OPTIMIZATION === */
html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

@media (max-width: 991.98px) {
    /* Navbar Mobile Fix */
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98) !important;
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        margin-top: 10px;
        border: 1px solid var(--neon-cyan);
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .navbar .nav-link {
        padding: 10px 0 !important;
    }
}

@media (max-width: 767.98px) {
    /* Global Padding Reduction */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-5, .p-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Headings */
    h1, .display-4, .display-5 {
        font-size: 1.8rem !important;
        word-wrap: break-word;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.25rem !important;
    }
    p {
        font-size: 0.95rem !important;
    }

    /* Cards */
    .card-body {
        padding: 1.25rem !important;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 10px;
        white-space: normal;
        height: auto;
    }
    .btn-close {
        width: 30px !important;
        margin-bottom: 0 !important;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Modals (Popup) */
    .modal-dialog {
        margin: 10px;
    }
    .modal-body .position-absolute {
        position: relative !important;
        bottom: 0 !important;
        padding: 15px;
        background: var(--dark-text);
    }
    .modal-body img {
        max-height: 60vh !important;
    }
    
    /* Tables */
    table {
        font-size: 0.85rem !important;
    }
    .table-responsive {
        border: 0;
        margin-bottom: 0;
    }
    
    /* Footer */
    footer {
        padding: 40px 15px 20px !important;
        text-align: center;
    }
    footer .row > div {
        margin-bottom: 30px;
    }
    footer .social-icons {
        justify-content: center;
    }
}

/* ============================================================
   FUTURISTIC FOOTER & PORTAL STYLING (GLOBAL SYNC)
   ============================================================ */
footer {
    background: url('../images/anime/latar_belakang_beranda_bawah.webp') center/cover no-repeat !important;
    color: #000 !important;
    padding: 60px 0 30px !important;
    font-family: 'Orbitron', 'Inter', sans-serif !important;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.8) !important;
    position: relative !important;
    border-top: 2px solid #0ff !important;
}

footer h5 {
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    color: #000 !important;
    text-transform: uppercase !important;
}

footer a, footer p, footer span, footer .text-white { 
    color: #000 !important; 
    text-decoration: none !important; 
    transition: all 0.3s !important; 
    font-weight: 800 !important;
} 

footer a:hover { 
    color: #000 !important; 
    text-decoration: none !important; 
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff !important;
}

footer .social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.6) !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    transition: all 0.3s ease !important;
    margin-right: 10px !important;
}

footer .social-icons a:hover {
    background: var(--secondary-blue) !important;
    transform: translateY(-3px) !important;
}

/* ============================================================
   MODERN INTERACTIVE WHATSAPP FLOATING WIDGET & MODAL
   ============================================================ */
.wa-floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* WhatsApp Floating Button */
.wa-float {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer;
}

.wa-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.wa-float:active {
    transform: scale(0.96);
}

/* Badge Unread Notification */
.wa-badge-notification {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: #e53935;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.5);
    animation: waBadgePulse 2s infinite;
}

@keyframes waBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 12px rgba(229, 57, 53, 0.8); }
    100% { transform: scale(1); }
}

/* Interactive Floating Greeting Bubble */
.wa-greeting-bubble {
    background: #ffffff;
    color: #1e293b;
    border-radius: 18px;
    padding: 14px 16px;
    width: 290px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.35);
    position: relative;
    cursor: pointer;
    transform-origin: bottom right;
    animation: waBubbleEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-greeting-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(37, 211, 102, 0.2);
}

/* Speech Bubble Little Pointer */
.wa-greeting-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    border-bottom: 1px solid rgba(37, 211, 102, 0.35);
    border-right: 1px solid rgba(37, 211, 102, 0.35);
}

@keyframes waBubbleEntrance {
    0% { opacity: 0; transform: scale(0.85) translateY(12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.wa-bubble-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.wa-bubble-close:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.wa-bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wa-pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
    animation: waPulseRing 1.8s infinite;
}

@keyframes waPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.wa-online-status {
    font-size: 0.76rem;
    font-weight: 700;
    color: #15803d;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.wa-bubble-text {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #334155;
    margin-bottom: 10px;
    font-weight: 500;
}

.wa-bubble-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: #128c7e;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}

.wa-bubble-action i {
    transition: transform 0.2s ease;
}

.wa-greeting-bubble:hover .wa-bubble-action i {
    transform: translateX(4px);
}

/* Quick Topic Chips in WA Modal */
.wa-topics-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.wa-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
    margin-bottom: 6px;
    margin-right: 4px;
}

.wa-topic-chip:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.wa-topic-chip.active {
    background-color: #dcfce7;
    color: #166534;
    border-color: #86efac;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
}

.wa-direct-chat-btn {
    font-size: 0.78rem;
    color: #64748b;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: center;
    width: 100%;
    display: block;
}

.wa-direct-chat-btn:hover {
    color: #0f172a;
}

#waModalLabel {
    font-size: 1.15rem;
    font-family: 'Outfit', 'Inter', sans-serif !important;
    text-transform: none !important;
    color: #0f172a;
}

/* Responsive Mobile Rules */
@media (max-width: 767.98px) {
    .wa-floating-widget {
        bottom: 18px;
        right: 18px;
        gap: 8px;
    }

    .wa-float {
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .wa-greeting-bubble {
        width: 260px;
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .wa-greeting-bubble::after {
        right: 20px;
    }
}

/* Skeleton Loader */
.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}
@keyframes skeleton-loading {
  0% { background-color: hsl(200, 20%, 80%); }
  100% { background-color: hsl(200, 20%, 95%); }
}
.skeleton-text {
  width: 100%;
  height: .8rem;
  margin-bottom: .5rem;
  border-radius: .25rem;
}
.skeleton-text:last-child {
  margin-bottom: 0;
}
.skeleton-title {
  width: 50%;
  height: 1.2rem;
  margin-bottom: 1rem;
  border-radius: .25rem;
}
