/* Deputies List Page Styles */

/* Tab Buttons */
.tab-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--white);
    color: var(--green);
}

/* Filters Section */
.deputes-filters-section {
    background: var(--light-gray);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--green);
}

.filter-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 50px;
    padding: 15px 25px 15px 30px;
    gap: 10px;
    background: #ED2024;
    border-radius: 15px;
    border: none;
    color: #FFFFFF;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #c41c1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 32, 36, 0.3);
}

.filter-btn i {
    font-size: 16px;
}

.search-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3.5rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--green);
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sort-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    white-space: nowrap;
}

.sort-group .filter-select {
    width: auto;
    min-width: 150px;
}

/* Results Count */
.results-count {
    padding: 1.5rem 0;
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.count-number {
    font-weight: 700;
    color: var(--green);
    font-size: 1.3rem;
}

/* Deputies Grid */
.deputes-grid-section {
    padding: 2rem 0 4rem;
}

.deputes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.depute-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 629px;
    height: 295px;
    padding: 35px;
    gap: 30px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    box-shadow: 0px 4px 70px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.depute-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 80px 0px rgba(0, 0, 0, 0.1);
}

.depute-card-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    width: 100%;
    height: 100%;
}

.depute-photo-wrapper {
    width: 190px;
    height: 190px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F5F5F5;
}

.depute-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.depute-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    gap: 15px;
    width: 339px;
    min-width: 0;
}

.depute-name {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.3;
}

.depute-fonction {
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #0E8040;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.4;
}

.depute-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.depute-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #333333;
    margin: 0;
}

.depute-detail i {
    color: #0E8040;
    width: 18px;
    flex-shrink: 0;
}

.depute-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.depute-detail span {
    line-height: 1.4;
}

.depute-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px 8px 15px;
    border: 1px solid #0E8040;
    color: #0E8040;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.depute-link:hover {
    background: #0E8040;
    color: #FFFFFF;
}

.depute-link i {
    font-size: 0.85rem;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--medium-gray);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 1280px;
    height: 50px;
}

/* Page précédente button */
.pagination-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 50px;
    border-radius: 15px;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.pagination-prev {
    padding: 15px 30px 15px 25px;
    width: 219px;
    background: rgba(51, 51, 51, 0.15);
    color: #333333;
}

.pagination-prev:not(.disabled):hover {
    background: rgba(51, 51, 51, 0.25);
}

.pagination-prev.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Page suivante button */
.pagination-next {
    padding: 15px 25px 15px 30px;
    width: 197px;
    background: #ED2024;
    color: #FFFFFF;
}

.pagination-next:not(.disabled):hover {
    background: #c41c1f;
}

.pagination-next.disabled {
    background: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Arrow navigation buttons */
.pagination-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 36px;
    padding: 10px;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.pagination-arrow-prev {
    background: #FFFFFF;
    border: 1px solid #ED2024;
    color: #ED2024;
}

.pagination-arrow-prev:hover {
    background: #FFF5F5;
}

.pagination-arrow-next {
    background: #ED2024;
    border: none;
    color: #FFFFFF;
}

.pagination-arrow-next:hover {
    background: #c41c1f;
}

/* Page numbers */
.pagination-numbers {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 20px;
    height: 50px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number:hover:not(.current) {
    color: #ED2024;
}

.page-number.current {
    background: #ED2024;
    color: #FFFFFF;
    border-radius: 8px;
    padding: 0 12px;
}

/* Legacy page-link styles (for backward compatibility) */
.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.page-link.current {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.page-link.prev,
.page-link.next {
    background: var(--light-gray);
}

/* Key Stats Section */
.key-stats-section {
    background: #000000;
    padding: 4rem 0;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.key-stats-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #FFFFFF;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Clickable stat card link styles */
.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stat-card-link:hover {
    text-decoration: none;
    color: #FFFFFF;
}

.stat-card-link:hover .stat-number,
.stat-card-link:hover .stat-label {
    color: #FFFFFF;
}

.stat-card .stat-number {
    display: block;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.stat-card .stat-label {
    display: block;
    font-family: 'Lato', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #FFFFFF;
    opacity: 0.95;
}

/* Directory Section */
.directory-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.directory-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--dark-gray);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.directory-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.directory-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--green);
}

.directory-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.directory-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.directory-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-green {
    background: var(--green);
    color: var(--white);
}

.btn-green:hover {
    background: var(--dark-green);
    color: var(--white);
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background: #c41c1f;
    color: var(--white);
}

/* Responsive */
@media (max-width: 1320px) {
    .deputes-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .depute-card {
        max-width: 629px;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .depute-card {
        height: auto;
        min-height: 250px;
    }
    
    .stat-card .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .sort-group {
        width: 100%;
    }
    
    .sort-group .filter-select {
        flex: 1;
    }
    
    .directory-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.9rem;
    }
    
    .depute-card {
        padding: 25px;
        gap: 20px;
        height: auto;
    }
    
    .depute-card-inner {
        gap: 20px;
    }
    
    .depute-photo-wrapper {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .depute-card {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        height: auto;
    }
    
    .depute-photo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .depute-info {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .depute-details {
        align-items: center;
    }
    
    .depute-detail {
        justify-content: center;
    }
    
    .depute-link {
        width: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.85rem;
    }
}

/* Pagination Responsive */
@media (max-width: 992px) {
    .pagination {
        flex-wrap: wrap;
        gap: 1rem;
        height: auto;
        justify-content: center;
    }
    
    .pagination-prev,
    .pagination-next {
        width: auto;
        min-width: 150px;
    }
    
    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .pagination-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-prev,
    .pagination-next {
        width: 50px;
        min-width: 50px;
        padding: 12px;
    }
    
    .pagination-numbers {
        gap: 10px;
    }
    
    .page-number {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}
