/* Politicians Archive & Grid Page Styles */

.archive-politician-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 60px;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.header-left h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.header-left p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    max-width: 500px;
}

.header-right.stats-bar {
    display: flex;
    gap: 15px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    min-width: 140px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    line-height: 1.2;
}

.stat-info p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Layout */
.archive-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.archive-sidebar {
    flex: 0 0 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 90px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.sidebar-header a {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.filter-group select, 
.filter-group input[type="text"], 
.filter-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    outline: none;
    transition: all 0.2s;
}

.filter-group select:focus, 
.filter-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

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

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input-wrapper input {
    padding-left: 35px !important;
}

.age-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-range-inputs input {
    text-align: center;
}

.age-range-inputs span {
    color: #94a3b8;
    font-weight: bold;
}

/* Main Grid Area */
.archive-main {
    flex: 1;
}

.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.sort-controls select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
}

/* Grid */
.politicians-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.grid-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: #cbd5e1;
    font-size: 24px;
}

/* Politician Card */
.pol-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.5s forwards;
    position: relative;
}

.pol-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px) !important;
    border-color: #cbd5e1;
}

.pol-card-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #22c55e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.pol-card-status.former {
    background: #94a3b8;
}

.pol-card-img {
    height: 240px;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
}

.pol-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.pol-card:hover .pol-card-img img {
    transform: scale(1.05);
}

.pol-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pol-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pol-card-designation {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.pol-card-meta {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pol-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}

.pol-meta-item i {
    color: #f97316;
    margin-top: 2px;
    width: 14px;
    text-align: center;
}

.pol-meta-item.location i {
    color: #94a3b8;
}

.pol-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 15px;
}

.pol-tag {
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.pol-tag.blue {
    background: #eff6ff;
    color: #1e3a8a;
}

.pol-tag.gray {
    background: #f1f5f9;
    color: #475569;
}

.pol-card-action {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.pol-card-action a {
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pol-card-action a:hover {
    color: #2563eb;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.page-numbers:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.page-numbers.current {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Animations */
@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
