/**
 * MDSR NETWORK - Main Stylesheet
 * File: assets/css/style.css
 * Version: 3.0
 * ============================================
 */

/* ============================================================
   RESET & BASE
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F5F7FA;
    color: #1A1A2E;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ============================================================
   MAIN CONTENT
============================================================ */
.main-content {
    padding: 0;
}

/* ============================================================
   HERO BANNER SECTION
============================================================ */
.hero-section {
    padding: 50px 0 40px;
    background: linear-gradient(135deg, #0A0A1A 0%, #1A1A3A 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.06);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content .hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.08);
    color: #FFD700;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 14px;
}

.hero-title .hero-highlight {
    color: #FFD700;
}

.hero-description {
    font-size: 15px;
    color: #B0B0C8;
    line-height: 1.8;
    margin-bottom: 22px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #FFD700;
    color: #0A0A1A;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-btn-primary:hover {
    background: #FFED4A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}

.hero-btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #B0B0C8;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn-secondary:hover {
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #FFD700;
}

.stat-label {
    font-size: 12px;
    color: #8888AA;
    margin-top: 2px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 420px;
    height: 300px;
    background: rgba(255, 215, 0, 0.03);
    border: 2px dashed rgba(255, 215, 0, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image-icon {
    font-size: 80px;
    opacity: 0.3;
}

.hero-image-text {
    font-size: 18px;
    color: #B0B0C8;
    opacity: 0.4;
    margin-top: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ============================================================
   SECTION HEADING
============================================================ */
.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1A1A2E;
}

.section-heading p {
    font-size: 14px;
    color: #8888AA;
    margin-top: 4px;
}

/* ============================================================
   FEATURED CATEGORIES
============================================================ */
.featured-section {
    padding: 50px 0 30px;
    background: #F8FAFB;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}

.category-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px 16px 20px;
    text-align: center;
    border: 1px solid #E8ECF1;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: #FFD700;
}

.category-card .cat-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.category-card .cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
    display: block;
}

.category-card .cat-count {
    font-size: 11px;
    color: #8888AA;
    display: block;
    margin-top: 4px;
}

/* ============================================================
   WHY MDSR SECTION
============================================================ */
.why-section {
    padding: 50px 0;
    background: #FFFFFF;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 28px 20px 24px;
    border-radius: 12px;
    border: 1px solid #E8ECF1;
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: #FFD700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.why-card .why-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.why-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 6px;
}

.why-card p {
    font-size: 13px;
    color: #8888AA;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #0A0A1A 0%, #1A1A3A 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.06);
    border-bottom: 1px solid rgba(255, 215, 0, 0.06);
}

.cta-wrapper {
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 15px;
    color: #B0B0C8;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #FFD700;
    color: #0A0A1A;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cta-btn-primary:hover {
    background: #FFED4A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
}

.cta-btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #B0B0C8;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
}

/* ============================================================
   PRODUCTS GRID
============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8ECF1;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.product-link {
    display: block;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 200px;
    background: #F8FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-image .no-image {
    font-size: 48px;
    opacity: 0.3;
}

.product-body {
    padding: 14px 16px 16px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 42px;
}

.product-brand {
    font-size: 12px;
    color: #8888AA;
    margin-bottom: 6px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2DA8FF;
    margin-bottom: 4px;
}

.product-price .from {
    font-size: 12px;
    font-weight: 400;
    color: #8888AA;
}

.product-price .price-on-request {
    font-size: 14px;
    font-weight: 400;
    color: #8888AA;
}

.product-category {
    font-size: 11px;
    color: #8888AA;
    margin-bottom: 10px;
}

.product-actions .btn-view {
    display: block;
    width: 100%;
    padding: 8px;
    background: #2DA8FF;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.product-actions .btn-view:hover {
    background: #1f8fe0;
    transform: translateY(-1px);
}

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.page-btn {
    padding: 6px 14px;
    border: 1.5px solid #E8ECF1;
    border-radius: 6px;
    background: #FFFFFF;
    color: #4A4A6A;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.page-btn:hover:not(.active):not(.disabled) {
    border-color: #2DA8FF;
    color: #2DA8FF;
    background: #F0F7FF;
}

.page-btn.active {
    background: #2DA8FF;
    border-color: #2DA8FF;
    color: #FFFFFF;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   EMPTY STATE
============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E8ECF1;
}

.empty-state .icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 18px;
    color: #1A1A2E;
    margin-bottom: 4px;
}

.empty-state p {
    color: #8888AA;
    font-size: 14px;
}

.empty-state .btn-clear {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: #2DA8FF;
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* ===== TABLET (max-width: 992px) ===== */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-placeholder {
        max-width: 320px;
        height: 220px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-image-icon {
        font-size: 60px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 20px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .why-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 16px;
    }

    .why-card {
        padding: 20px 16px;
    }

    .why-card .why-icon {
        font-size: 32px;
    }

    .hero-section {
        padding: 30px 0 24px;
    }

    .featured-section {
        padding: 30px 0 20px;
    }

    .why-section {
        padding: 30px 0;
    }

    .cta-section {
        padding: 30px 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 160px;
    }

    .product-name {
        font-size: 13px;
        min-height: 36px;
    }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-btn-primary,
    .hero-btn-secondary,
    .cta-btn-primary,
    .cta-btn-secondary {
        font-size: 12px;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 18px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px 12px;
    }

    .category-card .cat-icon {
        font-size: 24px;
    }

    .category-card .cat-name {
        font-size: 12px;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .why-card {
        padding: 16px 12px;
    }

    .why-card .why-icon {
        font-size: 28px;
    }

    .why-card h3 {
        font-size: 14px;
    }

    .why-card p {
        font-size: 12px;
    }

    .hero-image-placeholder {
        max-width: 260px;
        height: 180px;
    }

    .hero-image-icon {
        font-size: 48px;
    }

    .hero-image-text {
        font-size: 14px;
    }

    .hero-section {
        padding: 20px 0 16px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .cta-content p {
        font-size: 13px;
    }

    .section-heading h2 {
        font-size: 20px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-image {
        height: 130px;
    }

    .product-body {
        padding: 10px 10px 12px;
    }

    .product-name {
        font-size: 12px;
        min-height: 32px;
    }

    .product-price {
        font-size: 15px;
    }

    .product-actions .btn-view {
        font-size: 11px;
        padding: 6px;
    }
}

/* ===== EXTRA SMALL (max-width: 360px) ===== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 18px;
    }

    .hero-image-placeholder {
        max-width: 220px;
        height: 150px;
    }

    .hero-image-icon {
        font-size: 40px;
    }

    .stat-number {
        font-size: 16px;
    }

    .why-card {
        padding: 12px 10px;
    }

    .why-card .why-icon {
        font-size: 24px;
    }

    .why-card h3 {
        font-size: 13px;
    }

    .why-card p {
        font-size: 11px;
    }

    .category-card {
        padding: 12px 8px;
    }

    .category-card .cat-icon {
        font-size: 20px;
    }

    .category-card .cat-name {
        font-size: 11px;
    }
}