﻿:root {
    --primary-color: #1e9e5b;
    --accent-color: #ff6b35;
}

/* =====================
   Filter Tabs
   ===================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
    user-select: none;
}

.filter-tab {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 158, 91, 0.3);
}

/* =====================
   Customer Grid
   ===================== */
.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

.customer-item {
    opacity: 0;
    animation: slideUp 0.3s ease-out forwards;
}

.customer-card {
    user-select: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.customer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.customer-card:hover .featured-image-section {
    transform: scale(1.1);
}

.customer-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px 8px 0 0;
    height: 200px;
    overflow: hidden;
}

.customer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.customer-card:hover .customer-image {
    transform: scale(1.1);
}

.customer-content {
    padding: 12px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0;
    line-height: 1.4;
}

.customer-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0;
    line-height: 1.5;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.customer-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 0;
}

.customer-address::before {
    content: "📍";
    flex-shrink: 0;
}

/* =====================
   Featured Card
   ===================== */
.customer-item.featured {
    grid-column: 1 / -1;
}

.customer-item.featured .customer-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
}

.customer-item.featured .customer-content {
    padding: 40px;
}

.customer-item.featured .customer-address {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 10;
}

.featured-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-image-section {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.featured-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-text-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-text-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.featured-text-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-actions {
    display: flex;
    gap: 15px;
}

.btn-featured {
    flex: 1;
    padding: 14px 28px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #fff;
}

/* =====================
   Empty State
   ===================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

/* =====================
   Pagination
   ===================== */
.pagination {
    margin: 0 0 20px;
}

.page-link {
    color: var(--primary-color);
    border-color: #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 158, 91, 0.2);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 158, 91, 0.3);
}

.page-item.disabled .page-link {
    color: #cbd5e0;
    cursor: not-allowed;
    background-color: #f7fafc;
    border-color: #e2e8f0;
}

/* =====================
   Animations
   ===================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
    .customers-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .featured-content-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .customer-item.featured .customer-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .customers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .customer-item.featured {
        grid-column: 1;
    }

    .customer-item.featured .customer-content {
        padding: 20px;
    }

    .featured-text-section h2 {
        font-size: 1.6rem;
    }

    .filter-tabs {
        gap: 10px;
        margin-bottom: 24px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .customers-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .customer-item.featured .customer-content {
        padding: 16px;
    }

    .featured-text-section h2 {
        font-size: 1.3rem;
    }

    .featured-image-section {
        height: 200px;
    }

    .btn-featured {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
}
