/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #1a1d23;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Ukrainian colors accent */
.ukraine-accent {
    background: linear-gradient(90deg, #005BBB 0%, #FFD700 100%);
    height: 4px;
    width: 100%;
}

/* Header Styles */
.header {
    background: #2d3748;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border-bottom: 1px solid #4a5568;
}

.header-content {
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid #4a5568;
}

.header h1 {
    font-family: 'PT Serif', serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.header .subtitle {
    font-size: 1.3em;
    color: #a0aec0;
    margin-bottom: 25px;
    font-weight: 400;
}

.header .date-info {
    font-size: 1em;
    color: #718096;
    font-style: italic;
    margin-bottom: 30px;
}

/* Voting Summary Styles */
.voting-summary {
    background: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 8px;
    padding: 25px;
    margin: 0 auto;
    max-width: 800px;
}

.voting-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: #1a202c;
    border: 2px solid;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-for { 
    border-color: #e53e3e; 
    background: linear-gradient(135deg, #1a202c 0%, rgba(229, 62, 62, 0.1) 100%);
}
.stat-for .stat-number { color: #fc8181; }

.stat-against { 
    border-color: #38a169; 
    background: linear-gradient(135deg, #1a202c 0%, rgba(56, 161, 105, 0.1) 100%);
}
.stat-against .stat-number { color: #68d391; }

.stat-abstain { 
    border-color: #d69e2e; 
    background: linear-gradient(135deg, #1a202c 0%, rgba(214, 158, 46, 0.1) 100%);
}
.stat-abstain .stat-number { color: #f6e05e; }

.stat-absent { 
    border-color: #718096; 
    background: linear-gradient(135deg, #1a202c 0%, rgba(113, 128, 150, 0.1) 100%);
}
.stat-absent .stat-number { color: #a0aec0; }

/* Main Content Styles */
.main-content {
    background: #2d3748;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    border-radius: 8px;
}

.content-header {
    background: #1a202c;
    color: #f7fafc;
    padding: 20px 30px;
    border-bottom: 3px solid #4a5568;
    border-radius: 8px 8px 0 0;
}

.content-header h2 {
    font-family: 'PT Serif', serif;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.content-header p {
    opacity: 0.9;
    font-size: 1.1em;
    color: #a0aec0;
}

/* Search and Filter Styles */
.search-filters {
    padding: 30px;
    background: #2d3748;
    border-bottom: 1px solid #4a5568;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #4a5568;
    border-radius: 8px;
    background: #1a202c;
    color: #e2e8f0;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.search-input::placeholder {
    color: #718096;
}

.search-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    background: #2d3748;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 12px 20px;
    border: 2px solid #4a5568;
    background: #1a202c;
    color: #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: #2d3748;
    border-color: #718096;
}

.filter-btn.active {
    background: #4299e1;
    color: #1a202c;
    border-color: #4299e1;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

/* Deputies Section Styles */
.deputies-section {
    padding: 30px;
    background: #2d3748;
    border-radius: 0 0 8px 8px;
}

.section-title {
    font-family: 'PT Serif', serif;
    font-size: 1.5em;
    color: #f7fafc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a5568;
}

.deputies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Deputy Card Styles */
.deputy-card {
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.deputy-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
    border-color: #4299e1;
    background: #2d3748;
}

.deputy-photo-container {
    text-align: center;
    margin-bottom: 15px;
}

.deputy-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #2d3748;
    border: 3px solid #4a5568;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.5em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.deputy-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.initials-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    background: #2d3748;
    border-radius: 50%;
}

.deputy-photo:hover {
    border-color: #4299e1;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(66, 153, 225, 0.3);
}

.deputy-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #f7fafc;
    text-align: center;
    margin-bottom: 8px;
    font-family: 'PT Serif', serif;
    line-height: 1.3;
}

.deputy-position {
    font-size: 0.95em;
    color: #a0aec0;
    text-align: center;
    margin-bottom: 12px;
    font-style: italic;
}

.deputy-faction {
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

/* Faction-specific styles */
.faction-servant { 
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
    border-color: #38a169;
}

.faction-european-solidarity { 
    background: rgba(52, 152, 219, 0.2);
    color: #90cdf4;
    border-color: #4299e1;
}

.faction-batkivshchyna { 
    background: rgba(237, 137, 54, 0.2);
    color: #f6ad55;
    border-color: #dd6b20;
}

.faction-platform { 
    background: rgba(159, 122, 234, 0.2);
    color: #b794f6;
    border-color: #805ad5;
}

.faction-revival { 
    background: rgba(56, 178, 172, 0.2);
    color: #4fd1c7;
    border-color: #319795;
}

.faction-future { 
    background: rgba(113, 128, 150, 0.2);
    color: #a0aec0;
    border-color: #718096;
}

.faction-trust { 
    background: rgba(237, 137, 54, 0.2);
    color: #f6ad55;
    border-color: #dd6b20;
}

.faction-holos { 
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: #ef4444;
}

.faction-non-affiliated { 
    background: rgba(160, 174, 192, 0.2);
    color: #cbd5e0;
    border-color: #a0aec0;
}

.deputy-info {
    font-size: 0.9em;
    color: #a0aec0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.deputy-info strong {
    color: #e2e8f0;
}

.deputy-links {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.deputy-link {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wikipedia-link {
    background: rgba(66, 153, 225, 0.2);
    color: #90cdf4;
    border-color: #4299e1;
}

.wikipedia-link:hover {
    background: #4299e1;
    color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.photo-status {
    font-size: 0.8em;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Utility Styles */
.no-results {
    text-align: center;
    color: #a0aec0;
    font-size: 1.2em;
    margin: 60px 0;
    padding: 40px;
    background: #1a202c;
    border: 2px dashed #4a5568;
    border-radius: 8px;
    display: none;
}

.disclaimer {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    font-size: 0.95em;
    border-left: 4px solid #4299e1;
}

.disclaimer strong {
    color: #90cdf4;
}

/* Footer Styles */
.footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #4a5568;
}

.footer-content {
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}
