/*
===============================================
  Mafia Medical - Mobile Style
  Mobile-First Responsive Design
===============================================
*/

:root {
    --mobile-primary: #1E3A8A;
    --mobile-secondary: #4FD1C5;
    --mobile-accent: #2563EB;
    --mobile-bg: #F7FAFC;
    --mobile-white: #FFFFFF;
    --mobile-text: #2D3748;
    --mobile-gray: #718096;
    --mobile-light-gray: #E2E8F0;
    --mobile-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --mobile-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

.mobile-preview-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

.mobile-preview-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
}

.mobile-device-frame {
    width: 100%;
    max-width: 390px;
    height: 844px;
    background: #1a1a1a;
    border-radius: 50px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.device-notch {
    width: 150px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: var(--mobile-bg);
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeOut 0.5s ease 2.5s forwards;
}

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

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

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

.splash-logo i {
    font-size: 60px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 300;
}

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

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

/* ===== MOBILE HEADER ===== */
.mobile-header {
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--mobile-shadow);
}

.mobile-header .menu-btn,
.mobile-header .search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-header .menu-btn:active,
.mobile-header .search-btn:active {
    transform: scale(0.95);
}

.mobile-header .logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== DRAWER MENU ===== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.drawer-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 201;
    transition: var(--transition);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.drawer-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.drawer-user-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.drawer-user-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

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

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--mobile-text);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
    background: var(--mobile-bg);
    border-left-color: var(--mobile-primary);
    color: var(--mobile-primary);
}

.drawer-nav-item i {
    font-size: 22px;
    width: 30px;
}

.drawer-nav-item span {
    font-size: 16px;
    font-weight: 500;
}

.drawer-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid var(--mobile-light-gray);
}

.drawer-footer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: var(--mobile-gray);
    text-decoration: none;
    font-size: 14px;
}

/* ===== MOBILE CONTENT ===== */
.mobile-content {
    height: calc(100% - 70px - 65px);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--mobile-bg);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.mobile-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.mobile-content::-webkit-scrollbar-thumb {
    background: var(--mobile-primary);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.mobile-content::-webkit-scrollbar-thumb:hover {
    background: var(--mobile-accent);
}

/* Hero Slider Mobile */
.mobile-hero-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.mobile-hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mobile-hero-slide.active {
    opacity: 1;
}

.mobile-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

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

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

.mobile-hero-btn {
    background: white;
    color: var(--mobile-primary);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.hero-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Mobile Sections */
.mobile-section {
    padding: 20px;
    min-height: auto;
}

.mobile-section:last-child {
    padding-bottom: 40px;
}

.mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mobile-light-gray);
}

.mobile-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--mobile-primary);
}

.mobile-section-link {
    color: var(--mobile-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Product Cards Mobile */
.mobile-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mobile-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--mobile-shadow);
    transition: var(--transition);
}

.mobile-product-card:active {
    transform: scale(0.98);
}

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

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

.mobile-product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--mobile-text);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-product-price {
    color: var(--mobile-primary);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

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

/* Category Cards Mobile */
.mobile-categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.mobile-categories::-webkit-scrollbar {
    display: none;
}

.mobile-category-card {
    min-width: 100px;
    text-align: center;
    text-decoration: none;
}

.mobile-category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-size: 30px;
}

.mobile-category-name {
    font-size: 13px;
    color: var(--mobile-text);
    font-weight: 500;
}

/* Feature Cards */
.mobile-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mobile-feature-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--mobile-shadow);
}

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

.mobile-feature-title {
    font-size: 12px;
    color: var(--mobile-text);
    font-weight: 600;
}

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

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--mobile-gray);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 15px;
    border-radius: 10px;
    min-width: 60px;
}

.bottom-nav-item.active {
    color: var(--mobile-primary);
    background: rgba(30, 58, 138, 0.1);
}

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

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 600;
}

/* ===== BACK BUTTON ===== */
.back-to-website {
    position: fixed;
    top: 20px;
    left: 20px;
    background: white;
    color: var(--mobile-primary);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.back-to-website:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: var(--mobile-primary);
}

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

    .device-screen {
        border-radius: 0;
    }

    .back-to-website {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }

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

@media (max-width: 768px) {
    .mobile-device-frame {
        max-width: 100%;
        height: 100vh;
    }
}

/* ===== VERIFICATION SECTION ===== */
.mobile-verify-section {
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: var(--mobile-shadow);
}

.mobile-verify-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--mobile-light-gray);
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.mobile-verify-input:focus {
    outline: none;
    border-color: var(--mobile-primary);
}

.mobile-verify-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

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

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideInUp 0.5s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease forwards;
}

/* Products Page Mobile */
.mobile-products-header {
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    padding: 20px 20px 25px;
    color: white;
}

.mobile-products-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.mobile-search-bar {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.mobile-search-bar input {
    background: none;
    border: none;
    color: white;
    width: 100%;
    font-size: 15px;
}

.mobile-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* About Page Mobile */
.mobile-about-banner {
    height: 200px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.mobile-about-banner + .mobile-info-card {
    margin-top: 0;
}

.mobile-info-card {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--mobile-shadow);
}

.mobile-info-card h3 {
    color: var(--mobile-primary);
    margin-bottom: 12px;
    font-size: 18px;
}

.mobile-info-card p {
    color: var(--mobile-gray);
    line-height: 1.6;
    font-size: 14px;
}

/* Contact Page Mobile */
.mobile-contact-form {
    padding: 20px;
    padding-bottom: 40px;
}

.mobile-form-group {
    margin-bottom: 15px;
}

/* Extra padding for all content to ensure scroll space */
.mobile-product-grid,
.mobile-categories,
.mobile-features,
.mobile-testimonial-card:last-child {
    margin-bottom: 20px;
}

/* Ensure last elements have extra space */
.mobile-info-card:last-child,
.mobile-product-card:last-child,
.mobile-testimonial-card:last-child {
    margin-bottom: 30px;
}

.mobile-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--mobile-text);
    font-weight: 600;
    font-size: 14px;
}

.mobile-form-input,
.mobile-form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--mobile-light-gray);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
}

.mobile-form-input:focus,
.mobile-form-textarea:focus {
    outline: none;
    border-color: var(--mobile-primary);
}

.mobile-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.mobile-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Testimonials Mobile */
.mobile-testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--mobile-shadow);
}

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

.mobile-testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.mobile-testimonial-info h4 {
    margin: 0;
    font-size: 16px;
    color: var(--mobile-text);
}

.mobile-testimonial-rating {
    color: #FFA500;
    font-size: 14px;
}

.mobile-testimonial-text {
    color: var(--mobile-gray);
    line-height: 1.6;
    font-size: 14px;
}

/* Loading State */
.mobile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.mobile-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--mobile-light-gray);
    border-top-color: var(--mobile-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1E3A8A, #4FD1C5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:active {
    transform: scale(0.95);
}

/* Scroll indicator for more content */
.scroll-indicator {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-indicator 2s ease-in-out infinite;
    color: var(--mobile-primary);
    font-size: 24px;
    opacity: 0.7;
    z-index: 50;
}

@keyframes bounce-indicator {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}
