/* Default CSS for Yayasan Nurul Huda Setu */
/* This file is intentionally minimal */

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

/* Floating Info Button - Chatbot Style */
.floating-info-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.btn-chatbot-info {
    position: relative;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a859 0%, #008d46 50%, #007238 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: chatbotFloat 3s ease-in-out infinite;
    outline: none;
}

.btn-chatbot-info:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}

.btn-chatbot-info:active {
    transform: scale(0.95);
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(0, 168, 89, 0.6);
    animation: chatbotPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes chatbotFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes chatbotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Modal Styling */
.info-modal-content {
    border: none;
    border-radius: 26px;
    background: linear-gradient(145deg, #ffffff 0%, #f3fff7 55%, #e0ffe9 100%);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.info-modal-content .modal-header { 
    background: transparent;
    padding: 24px 28px 16px;
}

.info-modal-content .modal-body {
    padding: 16px 28px 24px;
}

.info-modal-content .modal-footer {
    padding: 16px 28px 24px;
    background: transparent;
}

.logo-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00a859, #009d50 60%, #007238);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.logo-modal { 
    width: 56px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.modal-title { 
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.tagline { 
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #008d46;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.map-container { 
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.35);
    background: #f0f0f0;
}

.map-frame { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.info-block { 
    background: #ffffff;
    border: 1px solid rgba(0, 168, 89, 0.15);
    padding: 18px 20px;
    border-radius: 18px;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.18);
    height: 100%;
}

.section-title { 
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #006d35;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.info-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.link-phone { 
    color: #008d46;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.link-phone:hover { 
    text-decoration: underline;
    color: #006d35;
}
/* ========================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ======================================== */

@media (max-width: 991px) {
    /* Navbar Mobile Optimization */
    .navbar-brand {
        font-size: 0.85em !important;
    }
    
    .navbar-brand img {
        height: 45px !important;
        margin-right: 10px !important;
    }
    
    /* Hamburger Menu - Pojok Kiri */
    .navbar-toggler {
        order: -1;
        margin-right: 15px;
        padding: 6px 10px;
        border: 2px solid #00a859 !important;
        border-radius: 8px;
        background-color: rgba(0, 168, 89, 0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 168, 89, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 168, 89, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 24px;
        height: 24px;
    }
    
    /* Mobile Menu Dropdown */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        border-radius: 0 0 15px 15px;
        max-height: 80vh;
        overflow-y: auto;
        margin-top: 0;
        padding: 15px 0;
    }
    
    .navbar-nav {
        width: 100%;
        padding: 0 15px;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 1em !important;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: #f8f8f8;
        border-radius: 8px;
        margin: 5px 0 10px 15px;
        padding: 8px 0;
    }
    
    .navbar-nav .dropdown-item {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    
    .btn-masuk {
        display: block !important;
        text-align: center;
        margin: 15px 15px 10px 15px !important;
        width: calc(100% - 30px) !important;
    }
}

@media (max-width: 768px) {
    /* Container Adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Top Bar Mobile */
    .top-bar {
        font-size: 0.75em !important;
        padding: 6px 0 !important;
    }
    
    .top-bar .d-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        height: auto !important;
        min-height: 500px !important;
        padding: 60px 0 40px !important;
    }
    
    .hero-section .row {
        flex-direction: column;
    }
    
    .hero-section .col-md-6 {
        width: 100%;
        padding: 20px 20px 30px 20px !important;
    }
    
    .hero-section h2 {
        font-size: 1.5em !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
    
    .hero-section .col-md-6:last-child {
        height: 350px !important;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .hero-section img {
        position: relative !important;
        right: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
    }
    
    /* Video Section Mobile */
    #video-profil {
        padding: 40px 0 !important;
    }
    
    #video-profil h3 {
        font-size: 1.5em !important;
        margin-bottom: 15px !important;
    }
    
    #video-profil p {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }
    
    #videoControls {
        padding: 12px !important;
        gap: 10px !important;
    }
    
    #playPauseBtn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1em !important;
    }
    
    #currentTime, #duration {
        font-size: 0.8em !important;
        min-width: 38px !important;
    }
    
    /* Floating Info Button */
    .floating-info-chatbot {
        bottom: 16px;
        right: 16px;
    }
    
    .btn-chatbot-info { 
        width: 56px; 
        height: 56px; 
        font-size: 24px; 
    }
    
    /* Modal Mobile */
    .logo-box { 
        width: 60px; 
        height: 60px; 
    }
    
    .logo-modal { 
        width: 48px; 
    }
    
    .info-modal-content {
        margin: 10px;
        border-radius: 20px;
    }
    
    .modal-title {
        font-size: 1.2rem !important;
    }
    
    /* Login Modal Mobile */
    .login-modal-content {
        width: 95% !important;
        padding: 30px 25px !important;
        max-height: 85vh !important;
    }
    
    .login-header h2 {
        font-size: 24px !important;
    }
    
    .social-btn {
        font-size: 13px !important;
        padding: 10px 15px !important;
    }
    
    /* Form Elements */
    .form-group .form-control {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    /* Section Titles */
    h3, h2 {
        font-size: 1.6em !important;
        text-align: center;
    }
    
    /* Cards and Content Boxes */
    .card, .info-block {
        margin-bottom: 20px;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables */
    table {
        font-size: 0.9em;
    }
    
    /* Buttons */
    .btn, button {
        font-size: 0.95em;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    .hero-section {
        min-height: 450px !important;
    }
    
    .hero-section h2 {
        font-size: 1.3em !important;
    }
    
    #video-profil h3 {
        font-size: 1.3em !important;
    }
    
    .navbar-brand div strong {
        font-size: 0.9em !important;
    }
    
    .navbar-brand div small {
        font-size: 0.7em !important;
    }
    
    /* Login Modal Extra Small */
    .login-modal-content {
        width: 98% !important;
        padding: 25px 20px !important;
    }
    
    .login-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    .login-header h2 {
        font-size: 22px !important;
    }
    
    .social-btn {
        font-size: 12px !important;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px !important;
        padding: 40px 0 20px !important;
    }
    
    .hero-section h2 {
        font-size: 1.2em !important;
    }
    
    .navbar-collapse {
        max-height: 60vh;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent Horizontal Scroll */
body {
    overflow-x: hidden;
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .nav-link, .dropdown-item, button, a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .navbar-nav .nav-link:hover,
    .dropdown-item:hover,
    .btn-masuk:hover {
        transform: none;
    }
}
