/*
===============================================
  MAFIA Medical Products - Mobile Styles
  Responsive Design with Drawer Menu & Splash Screen
===============================================
*/

/* ===== MOBILE PREVIEW SECTION ===== */
.mobile-preview-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.mobile-preview-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.mobile-preview-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.mobile-preview-toggle-btn i {
    font-size: 20px;
}

/* ===== MOBILE PHONE MOCKUP ===== */
.mobile-phone-mockup {
    max-width: 380px;
    margin: 40px auto 0;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 2px #2d2d2d;
    position: relative;
    animation: slideDown 0.5s ease;
}

.mobile-phone-mockup::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    border-radius: 42px;
    z-index: -1;
    opacity: 0.1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-notch {
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phone-notch::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.phone-notch::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #2d2d2d;
    border-radius: 2px;
}

.phone-screen {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    min-height: 650px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 650px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.splash-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.splash-logo i {
    font-size: 60px;
    color: #1E3A8A;
}

.splash-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.splash-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 40px;
}

.splash-loading {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MOBILE NAVIGATION DRAWER ===== */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1E3A8A;
}

.mobile-logo i {
    font-size: 24px;
    color: #4FD1C5;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #1E3A8A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.drawer-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    color: white;
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.drawer-logo i {
    font-size: 32px;
}

.drawer-brand-name {
    font-size: 24px;
    font-weight: 700;
}

.drawer-tagline {
    font-size: 12px;
    opacity: 0.9;
}

.drawer-nav {
    padding: 20px 0;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #2D3748;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
    background: #f8f9fa;
    border-left-color: #1E3A8A;
    color: #1E3A8A;
}

.drawer-nav-item i {
    font-size: 20px;
    width: 24px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.drawer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #6c757d;
}

.drawer-contact-info a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBILE CONTENT SECTIONS ===== */
.mobile-content {
    height: calc(100% - 60px);
    overflow-y: auto;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

/* Screen switching */
.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

/* Custom Scrollbar for Mobile Content */
.mobile-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-content::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-content::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 138, 0.3);
    border-radius: 10px;
}

.mobile-content::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 58, 138, 0.5);
}

.mobile-hero-section {
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    padding: 30px 20px;
    color: white;
    text-align: center;
}

.mobile-hero-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mobile-hero-subtitle {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.mobile-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #1E3A8A;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 25px 20px;
    background: white;
}

.mobile-stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.mobile-stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #1E3A8A;
    display: block;
}

.mobile-stat-label {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Features Section */
.mobile-features {
    padding: 25px 20px;
    background: white;
    margin-top: 10px;
}

.mobile-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 20px;
}

.mobile-feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
}

.mobile-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.mobile-feature-content {
    flex: 1;
}

.mobile-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 3px;
}

.mobile-feature-desc {
    font-size: 12px;
    color: #6c757d;
}

/* Products Section */
.mobile-products {
    padding: 25px 20px;
    background: #f8f9fa;
}

.mobile-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #e9ecef;
}

.mobile-product-info {
    padding: 15px;
}

.mobile-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 8px;
}

.mobile-product-desc {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
}

.mobile-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1E3A8A;
}

.mobile-product-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-decoration: none;
    color: #6c757d;
    font-size: 11px;
    transition: all 0.3s ease;
}

.bottom-nav-item.active {
    color: #1E3A8A;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* ===== DESKTOP RESPONSIVE FIXES ===== */
@media (min-width: 992px) {
    /* Hide mobile drawer on desktop */
    .mobile-drawer,
    .drawer-overlay,
    .mobile-bottom-nav {
        display: none !important;
    }
    
    /* Ensure desktop nav works properly */
    .navbar-collapse {
        display: flex !important;
    }
}

/* ===== TABLET & MOBILE RESPONSIVE ===== */
@media (max-width: 991px) {
    /* Top Info Bar */
    .top-info-bar {
        display: none;
    }
    
    /* Header Adjustments */
    .header-main {
        padding: 12px 0;
    }
    
    .navbar-brand {
        font-size: 20px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 500px;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .trust-indicators {
        margin-top: 30px !important;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    /* Cards and Content */
    .product-card,
    .feature-card,
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    /* Footer */
    .footer-widget {
        margin-bottom: 30px;
    }
    
    /* Spacing Adjustments */
    section {
        padding: 50px 0 !important;
    }
}

@media (max-width: 767px) {
    /* Typography */
    .section-title {
        font-size: 22px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 24px;
    }
    
    /* Make all content mobile-friendly */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Product Cards */
    .product-card {
        margin-bottom: 15px;
    }
    
    /* Form Controls */
    .form-control,
    .btn {
        font-size: 14px;
    }
    
    /* Verification Section */
    .verification-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    /* Mobile First Adjustments */
    .hero-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .trust-item {
        padding: 10px;
    }
    
    .trust-number {
        font-size: 24px;
    }
    
    .trust-label {
        font-size: 11px;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== MOBILE VERIFICATION SECTION ===== */
.mobile-verify-section {
    padding: 25px 20px;
    background: white;
    margin-top: 10px;
}

.mobile-verify-card {
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
}

.mobile-verify-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.mobile-verify-icon i {
    font-size: 35px;
    color: #1E3A8A;
}

.mobile-verify-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mobile-verify-desc {
    font-size: 13px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.mobile-verify-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.mobile-verify-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #1E3A8A;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    -webkit-tap-highlight-color: transparent;
}

a, button {
    transition: all 0.3s ease;
}
