/* ============================================
   MODERN MOBILE DESIGN - STYLES
   ============================================ */

/* Mobile Connexion Page */
.mobile-connexion-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mobile-connexion-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.mobile-connexion-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.mobile-logo-container {
    margin-bottom: 30px;
}

.mobile-logo-container img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.mobile-welcome-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.mobile-welcome-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.mobile-auth-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-auth-btn:hover,
.mobile-auth-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.mobile-auth-btn-google {
    background: white;
    color: #333;
}

.mobile-auth-btn-google:hover {
    background: #f5f5f5;
    color: #333;
}

.mobile-auth-btn-facebook {
    background: #3b5999;
    border-color: #3b5999;
}

.mobile-auth-btn-facebook:hover {
    background: #2d4373;
    border-color: #2d4373;
}

.mobile-auth-btn-email {
    background: #E23FEA;
    border-color: #E23FEA;
}

.mobile-auth-btn-email:hover {
    background: #c026d3;
    border-color: #c026d3;
}

.mobile-auth-btn-visit {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.mobile-auth-btn-visit:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.mobile-separator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: white;
}

.mobile-separator::before,
.mobile-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.mobile-footer-btn {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px;
    background: rgba(16, 47, 89, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.mobile-footer-btn img {
    width: 100%;
    max-width: 300px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mobile-footer-btn img:active {
    transform: scale(0.95);
}

/* Mobile Home Page */
.mobile-home-container {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 80px;
}

.mobile-header-modern {
    background: linear-gradient(135deg, #E23FEA 0%, #8b5cf6 100%);
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-nav-cards {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 20px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #ffffff;
    margin-bottom: 8px;
}

.mobile-nav-cards::-webkit-scrollbar {
    display: none;
}

.mobile-nav-card {
    min-width: 160px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 12px 16px;
    gap: 8px;
}

.mobile-nav-card i {
    font-size: 26px;
    margin-bottom: 6px;
    display: block;
}

.mobile-nav-card span {
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.mobile-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.mobile-nav-card:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-nav-card-jobs {
    background: #10b981;
}

.mobile-nav-card-wholesalers {
    background: #E23FEA;
}

.mobile-nav-card-fairs {
    background: #252A78;
}

.mobile-nav-card-market {
    background: #183E0C;
}

.mobile-nav-card-tv {
    background: #285E5E;
}

.mobile-nav-card-promo {
    background: #43198F;
}

.mobile-section-modern {
    margin: 24px 12px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-section-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #E23FEA 0%, #8b5cf6 100%);
    color: white;
}

.mobile-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.mobile-section-link {
    color: white;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-section-link i {
    font-size: 12px;
}

.mobile-section-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
}

.mobile-products-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 20px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #f8fafc;
}

.mobile-products-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-product-card {
    min-width: 160px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.mobile-product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
}

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

.mobile-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #E23FEA;
    margin-bottom: 8px;
    line-height: 1.2;
}

.mobile-product-price i {
    font-size: 14px;
    font-weight: 500;
    margin-right: 2px;
}

.mobile-product-name {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-weight: 500;
}

/* Error Modal */
.mobile-error-modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.mobile-error-modal .modal-header {
    background: linear-gradient(135deg, #E23FEA 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 20px;
}

.mobile-error-modal .modal-title {
    font-weight: 700;
    font-size: 20px;
}

.mobile-error-modal .modal-body {
    padding: 20px;
    color: #475569;
}

.mobile-error-modal .close {
    color: white;
    opacity: 1;
    font-size: 28px;
    font-weight: 300;
}

/* Compatibility with existing Mobile.cshtml styles */
.fproduct {
    margin: 24px 12px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fheader {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #E23FEA 0%, #8b5cf6 100%);
    color: white;
}

.fproduct .fheader p {
    color: white;
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.3px;
}

.fproduct .fheader a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fproduct .fheader a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
}

.fcorps-jobs {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 20px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #f8fafc;
}

.fcorps-jobs::-webkit-scrollbar {
    display: none;
}

.jobs.productf {
    min-width: 160px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.jobs.productf:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.jobs.productf:active {
    transform: scale(0.97);
}

.jobs.productf .data-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
}

.fcorps-detail {
    padding: 14px 12px;
}

.fcorps-detail .nom {
    font-size: 18px;
    font-weight: 700;
    color: #E23FEA;
    margin-bottom: 8px;
    line-height: 1.2;
}

.fcorps-detail .nom i {
    font-size: 14px;
    font-weight: 500;
    margin-right: 2px;
}

.fcorps-detail .min {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Additional spacing improvements */
.mobile-home-container {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* Jobs section improvements */
.fcorps-jobs .jobs.productf .fcorps-detail {
    padding: 16px;
    margin: 8px;
}

.fcorps-jobs .jobs.productf .fcorps-detail header {
    padding: 12px;
    margin-bottom: 12px;
}

.fcorps-jobs .jobs.productf .fcorps-detail h5 {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.4;
}

.fcorps-jobs .jobs.productf .fcorps-detail p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.5;
}

.fcorps-jobs .jobs.productf .fcorps-detail .col-xs-12 {
    margin-top: 12px;
    padding: 8px;
}

.fcorps-jobs .jobs.productf .fcorps-detail .col-xs-12 a {
    margin: 0 8px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fcorps-jobs .jobs.productf .fcorps-detail .col-xs-12 i {
    font-size: 20px !important;
}

/* CV Vitrine section improvements */
.fcorscv .jobs {
    margin: 8px;
    padding: 12px;
}

.fcorscv .jobs .fcorps-detail {
    padding: 14px;
}

/* Button improvements */
.kf-button {
    padding: 10px 16px !important;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.kf-button a {
    text-decoration: none;
    display: block;
    padding: 4px 0;
}

/* Dropdown menu improvements */
.dropdown-menu {
    padding: 12px !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-menu a {
    padding: 10px 12px !important;
    margin: 4px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Premium companies section */
.jobs.premium {
    margin: 8px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jobs.premium .data-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .mobile-welcome-title {
        font-size: 24px;
    }

    .mobile-auth-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .mobile-nav-card {
        min-width: 140px;
        height: 65px;
        font-size: 12px;
        padding: 10px 14px;
    }

    .mobile-nav-card i {
        font-size: 20px;
    }

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

    .mobile-product-card,
    .jobs.productf {
        min-width: 150px;
    }

    .mobile-product-image,
    .jobs.productf .data-img {
        height: 130px;
    }
}

