/**
 * Szavazási Rendszer - Modern Politikai Stílusú CSS
 * Sötét, elegáns design gradiensekkel és modern effektekkel
 */

/* === CSS VÁLTOZÓK === */
:root {
    /* Színpaletta - sötét, politikai hangulat */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #475569;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Háttérszínek */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-input: #1e293b;

    /* Szövegszínek */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Szegélyek */
    --border-color: #334155;
    --border-light: #475569;

    /* Árnyékok */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);

    /* Gradiensek */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);

    /* Átmenetek */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* === RESET & ALAP === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: #0f172a;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    padding-bottom: var(--space-lg);
    flex: 1 0 auto;
}

/* Háttér pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* === TIPOGRÁFIA === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm {
    max-width: 600px;
}

.container-md {
    max-width: 800px;
}

/* === HEADER === */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* === GOMBOK === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === KÁRTYÁK === */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    color: var(--text-secondary);
}

/* === SZAVAZÁS KÁRTYA === */
.poll-card {
    position: relative;
    overflow: hidden;
}

.poll-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.poll-card.featured::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.poll-card.featured {
    border-color: rgba(245, 158, 11, 0.3);
}

.poll-featured-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.poll-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    padding-right: 80px;
}

.poll-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.poll-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.poll-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.poll-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.poll-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.poll-status.closed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* === SZAVAZÁSI OPCIÓK === */
.vote-options {
    display: grid;
    gap: var(--space-md);
}

.vote-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.vote-option:hover:not(.disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}

.vote-option.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.vote-option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.vote-option-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: white;
    padding: 8px;
    flex-shrink: 0;
}

.vote-option-logo.placeholder {
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.vote-option-content {
    flex: 1;
    min-width: 0;
}

.vote-option-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.vote-option-result {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.vote-option-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.vote-option-bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 1s ease-out;
}

.vote-option-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 70px;
    text-align: right;
}

.vote-option-votes {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vote-option-check {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.vote-option.selected .vote-option-check {
    background: var(--primary);
    border-color: var(--primary);
}

.vote-option.selected .vote-option-check::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

/* === ŰRLAPOK === */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* === TOGGLE === */
.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--bg-card-hover);
    border-radius: 13px;
    transition: background var(--transition-fast);
    position: relative;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* === ALERTS === */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.alert-info {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #3b82f6;
}

/* === STATISZTIKÁK === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-xs);
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
}

/* === TÁBLÁZAT === */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table tr:last-child td {
    border-bottom: none;
}

/* === GRAFIKONOK === */
.chart-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

/* === ORSZÁG LISTA === */
.country-list {
    display: grid;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.country-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.country-flag {
    font-size: 1rem;
    flex-shrink: 0;
}

.country-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

.country-votes {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.875rem;
    min-width: 30px;
    text-align: right;
}

/* === MODÁLIS === */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    padding: var(--space-sm);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* === HERO SZEKCIÓ === */
.hero {
    text-align: center;
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-2xl);
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: var(--space-md) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: var(--space-sm);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    transition: color var(--transition-fast);
    padding: 0 var(--space-md);
    border-right: 1px solid var(--border-color);
}

.footer-links a:last-child {
    border-right: none;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* === BORÍTÓKÉP === */
.poll-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.poll-card-cover-link {
    display: block;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.poll-card-cover-link:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.poll-card-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-card-hover);
    display: block;
}

/* === SITE LOGO === */
.site-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* === LOADER === */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loader-overlay .loader {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* === BADGE === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-light);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

.hidden { display: none !important; }

/* === RESZPONZÍV === */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Kompakt header mobilon - GARANTÁLTAN 1 SOROS */
    .header {
        padding: 2px 0 !important;
    }

    .header .container {
        padding: 0 8px !important;
    }

    .header-inner {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        min-height: 40px;
    }

    /* Logó - csak ikon, szöveg nélkül */
    .logo {
        font-size: 1rem !important;
        gap: 0 !important;
        flex-shrink: 0;
    }

    .logo span {
        display: none !important;
    }

    .logo-icon,
    .site-logo-img {
        width: 32px !important;
        height: 32px !important;
    }

    /* Navigáció - kompakt */
    .nav {
        flex-wrap: nowrap !important;
        gap: 2px !important;
        flex: 1;
        justify-content: flex-end;
    }

    .nav-link {
        padding: 4px 6px !important;
        font-size: 0.65rem !important;
        white-space: nowrap;
    }

    .header .btn-sm {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
        white-space: nowrap;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xs);
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }

    .vote-option {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .vote-option-logo {
        width: 50px;
        height: 50px;
    }

    .vote-option-logo.placeholder {
        font-size: 1.5rem;
    }

    .vote-option-name {
        font-size: 1rem;
    }

    .vote-option-result {
        flex-direction: row;
        gap: var(--space-sm);
    }

    .vote-option-percentage {
        font-size: 1.25rem;
        min-width: 50px;
        text-align: right;
    }

    .vote-option-votes {
        font-size: 0.75rem;
    }

    .vote-option-check {
        top: 50%;
        transform: translateY(-50%);
        right: var(--space-sm);
        width: 24px;
        height: 24px;
    }

    .poll-cover {
        height: 150px;
    }

    .poll-card-cover {
        height: 100px;
    }

    .modal {
        padding: var(--space-lg);
    }

    .card {
        padding: var(--space-lg);
    }

    .btn-lg {
        width: 100%;
    }

    .poll-meta {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .stat-card {
        padding: var(--space-xs) 2px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.5625rem;
    }

    .hero {
        padding: var(--space-xl) 0;
    }

    .table th,
    .table td {
        padding: var(--space-sm);
        font-size: 0.875rem;
    }
}

/* === ANIMÁCIÓK === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Staggered animations for lists */
.vote-options .vote-option:nth-child(1) { animation-delay: 0s; }
.vote-options .vote-option:nth-child(2) { animation-delay: 0.1s; }
.vote-options .vote-option:nth-child(3) { animation-delay: 0.2s; }
.vote-options .vote-option:nth-child(4) { animation-delay: 0.3s; }
.vote-options .vote-option:nth-child(5) { animation-delay: 0.4s; }
.vote-options .vote-option:nth-child(6) { animation-delay: 0.5s; }

/* === KOMPAKT SZAVAZÁS OLDAL === */
.vote-page {
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
}

.poll-header-compact {
    text-align: center;
    margin-bottom: var(--space-md);
}

.poll-title-compact {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.poll-desc-compact {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.poll-cover-compact {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.poll-meta-compact {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.compact-alert {
    padding: var(--space-xs) var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.8125rem;
}

/* Grid elrendezés az opcióknak */
.vote-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.vote-options-grid.two-options {
    grid-template-columns: repeat(2, 1fr);
}

.vote-option-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.vote-option-card:hover:not(.disabled) {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.vote-option-card.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.15);
}

.vote-option-card.disabled {
    cursor: default;
}

.option-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: white;
    padding: 4px;
    margin: 0 auto var(--space-xs);
    display: block;
}

.option-logo.placeholder {
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.option-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-bar {
    height: 4px;
    background: var(--bg-dark);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.option-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

.option-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.option-pct {
    font-weight: 700;
    color: var(--text-primary);
}

.option-votes {
    color: var(--text-muted);
}

.option-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.2s;
}

.vote-option-card.selected .option-check {
    background: var(--primary);
    border-color: var(--primary);
}

.vote-option-card.selected .option-check::after {
    content: '✓';
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.btn-vote {
    width: 100%;
    margin-top: var(--space-sm);
}

/* Statisztikák - összecsukható */
.stats-details {
    margin: var(--space-md) 0;
}

.stats-details summary {
    cursor: pointer;
    padding: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stats-details[open] summary {
    margin-bottom: var(--space-sm);
}

.stats-content {
    padding: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.mini-stats {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.8125rem;
    margin-bottom: var(--space-sm);
}

.country-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.country-tag {
    background: var(--bg-card-hover);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.timeline-mini {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 45px;
    padding-top: 5px;
}

.timeline-bar {
    flex: 1;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    min-height: 5px;
}

/* Megosztás kompakt */
.share-compact {
    display: flex;
    gap: var(--space-xs);
    margin: var(--space-md) 0;
}

.share-input {
    flex: 1;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

/* Admin kompakt */
.admin-compact {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-color);
}

/* Asztali optimalizáció */
@media (min-width: 768px) {
    .poll-cover-compact {
        height: 150px;
    }

    .vote-options-grid {
        gap: var(--space-md);
    }

    .option-logo {
        width: 80px;
        height: 80px;
    }

    .option-name {
        font-size: 1rem;
    }
}

/* === PRINT === */
@media print {
    body {
        background: white;
        color: black;
    }

    .header,
    .footer,
    .btn,
    .nav {
        display: none;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
