/**
 * Mobile Style CSS - Mafiamads Medical Products
 * Responsive mobile preview styles with Samsung device frame
 */

/* ===============================================
   MOBILE DEVICE FRAME
   =============================================== */
.mobile-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.mobile-device {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 14px solid #1a1a1a;
}

.mobile-device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.mobile-device::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 10px;
    z-index: 11;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.mobile-screen::-webkit-scrollbar {
    width: 4px;
}

.mobile-screen::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-screen::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

/* ===============================================
   SPLASH SCREEN
   =============================================== */
.splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #003366, #2ecc71);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOut 3s forwards;
    animation-delay: 2s;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.splash-logo {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    animation: bounceIn 1s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

.splash-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    animation: slideInUp 1s ease;
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    animation: slideInUp 1s ease;
    animation-delay: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.splash-loader {
    margin-top: 40px;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===============================================
   MOBILE NAVIGATION DRAWER
   =============================================== */
.mobile-header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 15px 20px;
}

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

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

.mobile-logo i {
    font-size: 24px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #003366;
    cursor: pointer;
    padding: 5px;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

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

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.drawer-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #003366, #2ecc71);
    color: #fff;
}

.drawer-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.drawer-header p {
    margin: 5px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.drawer-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
    gap: 15px;
}

.drawer-menu a:hover {
    background: #f8f9fa;
}

.drawer-menu a i {
    font-size: 20px;
    color: #003366;
    width: 24px;
}

/* ===============================================
   BOTTOM NAVIGATION TABS
   =============================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 11px;
    transition: color 0.3s ease;
    padding: 5px 15px;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 24px;
    margin-bottom: 3px;
}

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

.bottom-nav-item:hover {
    color: #003366;
}

/* ===============================================
   MOBILE CONTENT SECTIONS
   =============================================== */
.mobile-content {
    padding-bottom: 70px;
}

.mobile-hero {
    background: linear-gradient(135deg, #003366, #2ecc71);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

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

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

.mobile-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #003366;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.mobile-btn:hover {
    transform: scale(1.05);
}

.mobile-section {
    padding: 25px 20px;
}

.mobile-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-section-title i {
    font-size: 24px;
}

.mobile-product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.mobile-product-card:hover {
    transform: translateY(-5px);
}

.mobile-product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e0e0e0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-product-image i {
    font-size: 60px;
    color: #003366;
}

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

.mobile-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.mobile-product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mobile-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 10px;
}

.mobile-product-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #003366;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mobile-product-btn:hover {
    background: #004488;
}

/* ===============================================
   MOBILE FORMS
   =============================================== */
.mobile-form-group {
    margin-bottom: 15px;
}

.mobile-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.mobile-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.mobile-form-control:focus {
    outline: none;
    border-color: #003366;
}

.mobile-submit-btn {
    width: 100%;
    padding: 14px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-submit-btn:hover {
    background: #27ae60;
}

/* ===============================================
   MOBILE ABOUT & TESTIMONIALS
   =============================================== */
.mobile-about-card {
    background: linear-gradient(135deg, #003366, #2ecc71);
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.mobile-about-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.mobile-about-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.mobile-testimonial-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.mobile-testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003366, #2ecc71);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
}

.mobile-testimonial-info h4 {
    font-size: 15px;
    margin: 0;
    color: #333;
}

.mobile-testimonial-info p {
    font-size: 12px;
    margin: 0;
    color: #999;
}

.mobile-testimonial-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

.mobile-rating {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 8px;
}

/* ===============================================
   DESKTOP MOBILE PREVIEW BUTTON
   =============================================== */
.mobile-preview-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #003366, #2ecc71);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-preview-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* ===============================================
   RESPONSIVE ADJUSTMENTS
   =============================================== */
@media (max-width: 480px) {
    .mobile-device {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .mobile-device::before,
    .mobile-device::after {
        display: none;
    }

    .mobile-preview-container {
        padding: 0;
    }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */
.text-center-mobile {
    text-align: center;
}

.mt-mobile-20 {
    margin-top: 20px;
}

.mb-mobile-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.slide-in {
    animation: slideInRight 0.3s ease forwards;
}

.slide-out {
    animation: slideOutRight 0.3s ease forwards;
}
