/* 
 * File Path: public/assets/css/frontend/pages/products.css
 * Products Page Styles - Minimal Compact Design
 */

/* ========== Variables ========== */
:root {
    --primary-orange: #F36D21;
    --primary-blue: #243E93;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #e0e0e0;
    --bg-light: #f8f9fa;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* ========== Hero Section - Compact ========== */
.products-hero {
    background: linear-gradient(135deg, #243E93 0%, #1a2d6d 100%);
    padding: 60px 0 40px;
    margin-top: -1px;
}

.products-hero-content {
    text-align: center;
    color: white;
}

.products-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.products-hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    opacity: 0.95;
}

/* ========== Main Section ========== */
.products-main {
    padding: 40px 0;
    background: #ffffff;
}

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

/* ========== Category Sections ========== */
.product-category {
    margin-bottom: 50px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.category-icon {
    font-size: 24px;
    color: var(--primary-blue);
}

.category-icon.health {
    color: #e74c3c;
}

.category-icon.general {
    color: #27ae60;
}

.category-icon.govt {
    color: var(--primary-orange);
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* ========== Products Grid - 4 per row ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ========== Product Card - Compact ========== */
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }

.product-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

.product-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: rgba(36, 62, 147, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product-icon i {
    font-size: 20px;
    color: var(--primary-blue);
}

.product-icon.health {
    background: rgba(231, 76, 60, 0.08);
}

.product-icon.health i {
    color: #e74c3c;
}

.product-icon.general {
    background: rgba(39, 174, 96, 0.08);
}

.product-icon.general i {
    color: #27ae60;
}

.product-icon.govt {
    background: rgba(243, 109, 33, 0.08);
}

.product-icon.govt i {
    color: var(--primary-orange);
}

.product-card:hover .product-icon {
    background: var(--primary-orange);
}

.product-card:hover .product-icon i {
    color: white;
}

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.product-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.product-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.product-link:hover {
    color: var(--primary-blue);
    gap: 8px;
}

.product-link i {
    font-size: 10px;
}

/* ========== CTA Section - Simple ========== */
.products-cta {
    background: var(--bg-light);
    padding: 50px 0;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.cta-content p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 0 25px 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--primary-orange);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #e55a00;
    transform: translateY(-1px);
}

/* ========== Simple Animation ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive Design ========== */

/* Large Desktop - 5 columns */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Desktop - 4 columns (default) */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Small Desktop - 3 columns */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .product-card {
        padding: 18px;
    }
    
    .products-hero-title {
        font-size: 32px;
    }
    
    .category-title {
        font-size: 22px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 768px) {
    .products-hero {
        padding: 50px 0 35px;
    }
    
    .products-hero-title {
        font-size: 28px;
    }
    
    .products-hero-subtitle {
        font-size: 15px;
    }
    
    .products-main {
        padding: 35px 0;
    }
    
    .product-category {
        margin-bottom: 40px;
    }
    
    .category-header {
        margin-bottom: 20px;
    }
    
    .category-icon {
        font-size: 22px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 16px;
    }
    
    .product-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }
    
    .product-icon i {
        font-size: 18px;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .product-description {
        font-size: 12px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
}

/* Mobile - 2 columns maintained */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .products-hero {
        padding: 40px 0 30px;
    }
    
    .products-hero-title {
        font-size: 24px;
    }
    
    .products-hero-subtitle {
        font-size: 14px;
    }
    
    .products-main {
        padding: 30px 0;
    }
    
    .product-category {
        margin-bottom: 35px;
    }
    
    .category-header {
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    
    .category-icon {
        font-size: 20px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        padding: 14px;
    }
    
    .product-icon {
        width: 40px;
        height: 40px;
    }
    
    .product-icon i {
        font-size: 16px;
    }
    
    .product-name {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .product-description {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .product-link {
        font-size: 12px;
    }
    
    .products-cta {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
    
    .cta-content p {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Very Small Mobile - Single column */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .category-title {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .products-hero,
    .products-cta {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}