/**
 * Shaw Immigration Projects - Styles
 * Matches Figma design system
 */

/* === Variables === */
:root {
    --shaw-primary: #1a1448;
    --shaw-accent: #e19a58;
    --shaw-white: #ffffff;
    --shaw-light-gray: #f4f6f7;
    --shaw-text: #333333;
    --shaw-text-light: #707070;
    --shaw-border: #d1d4e5;
    --shaw-transition: all 0.3s ease;
}

/* === Container === */
.shaw-immigration-filter {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

/* === Tab Navigation === */
.shaw-tabs-container {
    margin-bottom: 40px;
}

/* Country Tabs (Level 1) */
.shaw-country-tabs {
    display: flex;
    gap: 32px;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--shaw-border);
    margin-bottom: 0;
    flex-wrap: wrap;
}

.shaw-country-tab {
    position: relative;
    padding: 16px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--shaw-text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--shaw-transition);
    border-bottom: 3px solid transparent;
}

.shaw-country-tab:hover {
    color: var(--shaw-primary);
}

.shaw-country-tab.active {
    color: var(--shaw-primary);
    font-weight: 700;
    border-bottom-color: var(--shaw-accent);
}

/* Category Tabs (Level 2) */
.shaw-category-tabs {
    display: flex;
    gap: 32px;
    padding: 16px 16px 0;
    border-bottom: 1px solid var(--shaw-light-gray);
    flex-wrap: wrap;
}

.shaw-category-tab {
    position: relative;
    padding: 16px 0 13px;
    font-family: 'Arial', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--shaw-text-light);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--shaw-transition);
    border-bottom: 3px solid transparent;
}

.shaw-category-tab:hover {
    color: var(--shaw-accent);
}

.shaw-category-tab.active {
    color: var(--shaw-accent);
    font-weight: 700;
    border-bottom-color: var(--shaw-accent);
}

/* === Projects Grid === */
.shaw-projects-grid {
    padding: 60px 0;
    position: relative;
    min-height: 400px;
}

.shaw-projects-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .shaw-projects-row {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .shaw-projects-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* === Project Card === */
.shaw-project-card {
    background: var(--shaw-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(71, 100, 195, 0.1);
    transition: var(--shaw-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shaw-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(71, 100, 195, 0.15);
}

.shaw-project-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shaw-project-image {
    position: relative;
    width: 100%;
    height: 384px;
    overflow: hidden;
}

.shaw-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--shaw-transition);
}

.shaw-project-card:hover .shaw-project-image img {
    transform: scale(1.05);
}

.shaw-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2));
    pointer-events: none;
}

.shaw-project-content {
    padding: 30px 40px 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shaw-project-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
    color: var(--shaw-primary);
    margin: 0 0 20px 0;
}

.shaw-project-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 24px;
    color: var(--shaw-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.shaw-project-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--shaw-light-gray);
}

.shaw-meta-item {
    display: flex;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 24px;
}

.shaw-meta-item .meta-label {
    font-weight: 500;
    color: var(--shaw-text);
}

.shaw-meta-item .meta-value {
    font-weight: 400;
    color: var(--shaw-text-light);
}

.shaw-project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--shaw-accent);
    color: var(--shaw-white);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--shaw-transition);
    align-self: flex-start;
    min-width: 132px;
    height: 36px;
}

.shaw-project-btn:hover {
    background-color: #c78543;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 154, 88, 0.3);
}

/* === Pagination === */
.shaw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--shaw-border);
}

.shaw-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    font-family: 'Parabolica', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 48px;
    color: var(--shaw-text-light);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--shaw-transition);
}

.shaw-page-link:hover:not(.disabled):not(.active):not(.dots) {
    background-color: var(--shaw-light-gray);
    color: var(--shaw-primary);
}

.shaw-page-link.active {
    background-color: var(--shaw-primary);
    color: var(--shaw-white);
    font-weight: 700;
}

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

.shaw-page-link.dots {
    cursor: default;
}

.shaw-prev,
.shaw-next {
    font-size: 16px !important;
}

/* === Loading State === */
.shaw-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10;
}

.shaw-loading::after {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    border: 4px solid var(--shaw-light-gray);
    border-top-color: var(--shaw-accent);
    border-radius: 50%;
    animation: shaw-spin 0.8s linear infinite;
}

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

/* === No Results === */
.shaw-no-results {
    text-align: center;
    padding: 80px 20px;
}

.shaw-no-results p {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: var(--shaw-text-light);
}

/* === Error State === */
.shaw-error {
    text-align: center;
    padding: 80px 20px;
    color: #d32f2f;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .shaw-country-tabs,
    .shaw-category-tabs {
        gap: 16px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .shaw-country-tab,
    .shaw-category-tab {
        font-size: 14px;
    }
    
    .shaw-project-image {
        height: 240px;
    }
    
    .shaw-project-content {
        padding: 20px 24px 24px;
    }
    
    .shaw-project-title {
        font-size: 22px;
        line-height: 28px;
    }
    
    .shaw-project-desc {
        font-size: 16px;
        line-height: 22px;
    }
    
    .shaw-pagination {
        gap: 8px;
    }
    
    .shaw-page-link {
        min-width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

