/**
 * Seatech Clients Styles
 * Styles for clients and Brazilian correspondents
 */

/* ===== CLIENTS ARCHIVE STYLES ===== */
.clients-archive {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

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

.clients-header {
    text-align: center;
    margin-bottom: 60px;
}

.clients-title {
    font-size: 3em;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.clients-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #005a87);
    margin: 20px auto;
    border-radius: 2px;
}

.clients-description {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== FILTER TABS ===== */
.clients-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid #0073aa;
    background: transparent;
    color: #0073aa;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

/* ===== CLIENTS GRID ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.client-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #005a87);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.client-logo-container {
    margin-bottom: 25px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.client-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.client-card:hover .client-logo-container img {
    filter: grayscale(0%);
}

.client-info h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin: 20px 0 15px 0;
    line-height: 1.4;
}

.client-type-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-type-indicator.correspondent {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 115, 170, 0.3);
}

.client-type-indicator.regular {
    background: #f0f0f0;
    color: #666;
}

.client-type-indicator .flag-icon {
    font-size: 1.1em;
}

/* ===== SINGLE CLIENT STYLES ===== */
.single-client-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
}

.single-client-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-client-logo {
    max-width: 250px;
    margin: 0 auto 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-client-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.single-client-title {
    font-size: 3em;
    font-weight: 700;
    color: #333;
    margin: 30px 0 20px 0;
}

.single-client-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.single-client-badge.correspondent {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 115, 170, 0.4);
}

.single-client-badge.regular {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #666;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===== NAVIGATION ===== */
.client-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 60px 0;
    padding: 40px 0;
    border-top: 2px solid #f0f0f0;
}

.client-nav-item {
    flex: 1;
    max-width: 45%;
}

.client-nav-link {
    display: block;
    padding: 25px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.client-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0073aa, #005a87);
    transition: left 0.3s ease;
    z-index: -1;
}

.client-nav-link:hover::before {
    left: 0;
}

.client-nav-link:hover {
    color: white;
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.3);
}

.nav-direction {
    display: block;
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-client-name {
    display: block;
    font-weight: 600;
    font-size: 1.1em;
}

.client-nav-item.next .client-nav-link {
    text-align: right;
}

/* ===== BACK TO ARCHIVE BUTTON ===== */
.back-to-archive {
    text-align: center;
    margin: 40px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.4);
    color: white;
}

.back-btn .arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.back-btn:hover .arrow {
    transform: translateX(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .clients-title {
        font-size: 2.5em;
    }
    
    .clients-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .client-card {
        padding: 30px 25px;
    }
    
    .single-client-title {
        font-size: 2.5em;
    }
    
    .client-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .client-nav-item {
        max-width: 100%;
    }
    
    .client-nav-item.next .client-nav-link {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .clients-container {
        padding: 0 15px;
    }
    
    .clients-title {
        font-size: 2em;
    }
    
    .single-client-title {
        font-size: 2em;
    }
    
    .client-card {
        padding: 25px 20px;
    }
    
    .client-logo-container {
        height: 100px;
        padding: 15px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}

/* ===== LOADING ANIMATION ===== */
.client-card.loading {
    opacity: 0;
    transform: translateY(20px);
}

.client-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .client-card,
    .filter-btn,
    .client-nav-link,
    .back-btn {
        transition: none;
    }
    
    .client-card:hover {
        transform: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .clients-filter,
    .client-navigation,
    .back-to-archive {
        display: none;
    }
    
    .clients-grid {
        display: block;
    }
    
    .client-card {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}