/* Custom CSS - Revitalisasi & Komersialisasi Budaya Madura */
/* Madrasah Al-Aziziyah Kwanyar */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&family=Cinzel:wght@600;700&display=swap');

:root {
    --bs-primary: #C62828;
    --bs-primary-rgb: 198, 40, 40;
    --bs-secondary: #2E7D32;
    --bs-secondary-rgb: 46, 125, 50;
    --madura-red: #D32F2F;
    --madura-red-dark: #9A0007;
    --madura-black: #121212;
    --madura-gold: #D97706;
    --madura-gold-light: #F59E0B;
    --madura-cream: #FFFDF7;
    --madura-cream-dark: #F7F3E9;
    --eko-green: #2E7D32;
    --eko-green-light: #4CAF50;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Cinzel', serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--madura-cream);
    color: #2D3748;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

.font-accent {
    font-family: var(--font-accent);
}

/* Background Patterns & Ornaments */
.bg-batik-pattern {
    background-color: #121212;
    background-image: radial-gradient(rgba(217, 119, 6, 0.15) 1px, transparent 1px), radial-gradient(rgba(198, 40, 40, 0.15) 1px, #121212 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

.bg-cream-pattern {
    background-color: var(--madura-cream);
    background-image: radial-gradient(rgba(198, 40, 40, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.bg-gradient-madura {
    background: linear-gradient(135deg, #121212 0%, #2A0808 50%, #1A2316 100%);
}

.bg-gradient-red {
    background: linear-gradient(135deg, #C62828 0%, #8E0000 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
}

.text-gold {
    color: var(--madura-gold-light) !important;
}

.text-madura-red {
    color: var(--madura-red) !important;
}

.text-eko-green {
    color: var(--eko-green) !important;
}

/* Red-White Sakera Stripe Accent Line */
.sakera-border-bottom {
    border-bottom: 4px solid;
    border-image: repeating-linear-gradient(90deg, #D32F2F 0, #D32F2F 15px, #FFFFFF 15px, #FFFFFF 30px) 1;
}

.sakera-badge {
    background: repeating-linear-gradient(45deg, #D32F2F, #D32F2F 10px, #FFFFFF 10px, #FFFFFF 20px);
    color: #121212;
    font-weight: 800;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.2);
}

/* Header & Navbar */
.navbar-madura {
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--madura-gold);
    transition: all 0.3s ease;
}

.navbar-madura .nav-link {
    color: #E2E8F0;
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.navbar-madura .nav-link:hover, .navbar-madura .nav-link.active {
    color: #FFFFFF;
    background: rgba(217, 119, 6, 0.2);
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.92)), url('../images/hero_bg.png') center/cover no-repeat;
    border-bottom: 5px solid var(--madura-gold);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    background: linear-gradient(135deg, #FFFFFF 40%, var(--madura-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
    }
}

.hero-subtitle {
    color: #CBD5E1;
    font-size: 1.15rem;
}

/* Mascot Display Container */
.mascot-container {
    position: relative;
    display: inline-block;
}

.mascot-img {
    max-height: 440px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-container:hover .mascot-img {
    transform: scale(1.03) translateY(-6px);
}

.mascot-speech-bubble {
    position: absolute;
    top: 10px;
    right: -20px;
    background: #FFFFFF;
    color: #1E293B;
    padding: 12px 18px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    font-weight: 600;
    font-size: 0.88rem;
    z-index: 10;
    max-width: 220px;
    animation: floatBubble 3s ease-in-out infinite;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Cards & Components */
.card-madura {
    border: none;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
}

.card-madura:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(198, 40, 40, 0.12);
}

.card-madura .card-header-accent {
    height: 6px;
    background: linear-gradient(90deg, var(--madura-red), var(--madura-gold), var(--eko-green));
}

.icon-box-lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Photo Gallery Item */
.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.2) 60%, transparent 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #FFFFFF;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Floating Mascot Widget (Bottom Right) */
.floating-mascot-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--madura-red) 0%, var(--madura-gold) 100%);
    border: 3px solid #FFFFFF;
    box-shadow: 0 10px 25px rgba(198, 40, 40, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-mascot-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.floating-mascot-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.floating-mascot-btn .pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--madura-gold-light);
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Custom Buttons */
.btn-madura-primary {
    background: linear-gradient(135deg, var(--madura-red) 0%, #A71D1D 100%);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 12px 26px;
    box-shadow: 0 6px 18px rgba(198, 40, 40, 0.3);
    transition: all 0.25s ease;
}

.btn-madura-primary:hover {
    background: linear-gradient(135deg, #E53935 0%, var(--madura-red) 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(198, 40, 40, 0.4);
}

.btn-madura-gold {
    background: linear-gradient(135deg, var(--madura-gold) 0%, #B45309 100%);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 12px 26px;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
    transition: all 0.25s ease;
}

.btn-madura-gold:hover {
    background: linear-gradient(135deg, var(--madura-gold-light) 0%, var(--madura-gold) 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-eko-outline {
    background: transparent;
    color: var(--eko-green);
    border: 2px solid var(--eko-green);
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 22px;
    transition: all 0.25s ease;
}

.btn-eko-outline:hover {
    background: var(--eko-green);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Modals Custom */
.modal-content-madura {
    border-radius: 20px;
    border: 2px solid var(--madura-gold);
    overflow: hidden;
}

.modal-header-madura {
    background: linear-gradient(135deg, #121212 0%, #2A0808 100%);
    color: #FFFFFF;
    border-bottom: 2px solid var(--madura-gold);
}

/* E-LKPD Interactive Sheet */
.elkpd-sheet {
    background: #FFFFFF;
    border: 2px dashed #CBD5E1;
    border-radius: 16px;
    padding: 24px;
}

.quiz-option {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: var(--madura-gold);
    background: rgba(245, 158, 11, 0.05);
}

.quiz-option.selected {
    border-color: var(--madura-red);
    background: rgba(211, 47, 47, 0.08);
    font-weight: 700;
}

.quiz-option.correct {
    border-color: var(--eko-green);
    background: rgba(76, 175, 80, 0.12);
    color: #1B5E20;
}

/* Badge & Pills */
.pill-madura {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Stats Counter Box */
.stat-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--madura-gold);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: var(--madura-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--madura-gold);
}

/* iFrame & Video Container Enhancements */
.style-flipbook-container {
    min-height: 540px;
    border-radius: 0 0 16px 16px;
}

@media (max-width: 768px) {
    .style-flipbook-container {
        min-height: 380px;
    }
}

.fs-7 {
    font-size: 0.75rem !important;
}

/* Developer Photo Hover Effect */
.style-developer-photo {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.card-madura:hover .style-developer-photo {
    transform: scale(1.08);
}
