/**
 * REFERENDBUM - Styles
 * Argentina Theme: Celeste y Blanco
 */

:root {
    --color-primary: #74ACDF;      /* Celeste Argentino */
    --color-accent: #0033A0;       /* Azul Oscuro */
    --color-background: #FFFFFF;
    --color-surface: #F8FAFC;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-border: #E5E7EB;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #3B82F6;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-surface);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.main-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-link {
    background: rgba(255, 255, 255, 0.2) !important;
}

.btn-register {
    background: white !important;
    color: var(--color-accent) !important;
}

.btn-logout {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    color: var(--color-text-light);
}

.page-header.polemicas-header h1 {
    color: var(--color-warning);
}

.info-note {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: #002080;
}

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

.btn-secondary:hover {
    background: #D1D5DB;
}

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

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

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   FEED CONTROLS
   ============================================ */

.feed-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   PROPOSALS LIST
   ============================================ */

.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proposal-card {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s;
}

.proposal-card:hover {
    box-shadow: var(--shadow-md);
}

.proposal-card.polemica {
    border-left: 4px solid var(--color-warning);
}

.proposal-voting {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.vote-btn {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--color-text-light);
}

.vote-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.vote-btn.voted {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.vote-arrow {
    font-size: 1.25rem;
}

.vote-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 0.25rem;
}

.vote-people {
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-align: center;
}

.proposal-content {
    flex: 1;
}

.proposal-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.proposal-title a {
    color: var(--color-text);
    text-decoration: none;
}

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

.proposal-excerpt {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.proposal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.proposal-meta a {
    color: var(--color-text-light);
    text-decoration: none;
}

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

.polemica-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.polemica-badge span:first-child {
    background: #FEF3C7;
    color: #B45309;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.report-count {
    color: var(--color-warning);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-validated {
    background: #D1FAE5;
    color: #047857;
}

.badge-admin {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-pending {
    background: #FEE2E2;
    color: #B91C1C;
}

.badge-success {
    background: #D1FAE5;
    color: #047857;
}

.badge-warning {
    background: #FEF3C7;
    color: #B45309;
}

.badge-danger {
    background: #FEE2E2;
    color: #B91C1C;
}

.badge-info {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-secondary {
    background: #E5E7EB;
    color: #4B5563;
}

.badge-upcoming {
    background: #E0E7FF;
    color: #4338CA;
}

.badge-polemica {
    background: #FEF3C7;
    color: #B45309;
}

/* ============================================
   PROPOSAL DETAIL
   ============================================ */

.proposal-detail {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.polemica-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.proposal-header {
    margin-bottom: 2rem;
}

.voting-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vote-btn-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--color-text);
}

.vote-btn-large:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.vote-btn-large.voted {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.rating-display {
    display: flex;
    flex-direction: column;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.rating-people {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.proposal-detail h1 {
    font-size: 1.75rem;
    color: var(--color-text);
}

.proposal-meta-large {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.proposal-meta-large a {
    color: var(--color-accent);
    text-decoration: none;
}

.proposal-body {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.proposal-body .description {
    font-size: 1rem;
    line-height: 1.8;
}

.proposal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-report {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #F59E0B;
}

.btn-report:hover {
    background: #FDE68A;
}

.btn-report.reported {
    background: #E5E7EB;
    color: #6B7280;
    border-color: #D1D5DB;
}

.report-info {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ============================================
   COMMENTS
   ============================================ */

.comments-section {
    margin-top: 2rem;
}

.comments-section h2 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

.login-to-comment {
    background: var(--color-surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.login-to-comment a {
    color: var(--color-accent);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment {
    background: var(--color-surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--color-text);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.comment-body {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.comment-actions {
    margin-bottom: 0.5rem;
}

.btn-reply {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.btn-reply:hover {
    text-decoration: underline;
}

.reply-form {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

.reply-form-actions {
    display: flex;
    gap: 0.5rem;
}

.replies {
    margin-top: 1rem;
    margin-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.replies .comment {
    border-left-color: var(--color-border);
}

/* ============================================
   REFERENDUMS
   ============================================ */

.referendums-section {
    margin-bottom: 3rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--color-text);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.active {
    background: var(--color-success);
}

.status-indicator.upcoming {
    background: var(--color-info);
}

.status-indicator.closed {
    background: var(--color-text-light);
}

.referendums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.referendum-card {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.referendum-card.active {
    border-left: 4px solid var(--color-success);
}

.referendum-card.upcoming {
    border-left: 4px solid var(--color-info);
}

.referendum-card.closed {
    border-left: 4px solid var(--color-text-light);
}

.referendum-card h3 {
    margin-bottom: 0.5rem;
}

.referendum-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.referendum-card h3 a:hover {
    color: var(--color-accent);
}

.referendum-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.referendum-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.results-preview {
    margin-bottom: 1rem;
}

.result-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.result-si {
    background: var(--color-success);
}

.result-no {
    background: var(--color-danger);
}

.result-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.result-labels .si {
    color: var(--color-success);
}

.result-labels .no {
    color: var(--color-danger);
}

.empty-message {
    color: var(--color-text-light);
    font-style: italic;
}

/* ============================================
   REFERENDUM DETAIL
   ============================================ */

.referendum-detail {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.referendum-header {
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-badge.active {
    background: #D1FAE5;
    color: #047857;
}

.status-badge.upcoming {
    background: #DBEAFE;
    color: #1D4ED8;
}

.status-badge.closed {
    background: #E5E7EB;
    color: #4B5563;
}

.referendum-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.info-item {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.referendum-description {
    margin-bottom: 2rem;
}

.referendum-description h3 {
    margin-bottom: 0.5rem;
}

.voting-section {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.voting-section h3 {
    margin-bottom: 1rem;
}

.vote-form {
    text-align: center;
}

.vote-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vote-option {
    cursor: pointer;
}

.vote-option input {
    display: none;
}

.option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    min-width: 120px;
}

.option-label .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.vote-option.si .option-label {
    color: var(--color-success);
}

.vote-option.no .option-label {
    color: var(--color-danger);
}

.vote-option.abstencion .option-label {
    color: var(--color-text-light);
}

.vote-option input:checked + .option-label {
    border-width: 3px;
}

.vote-option.si input:checked + .option-label {
    border-color: var(--color-success);
    background: #D1FAE5;
}

.vote-option.no input:checked + .option-label {
    border-color: var(--color-danger);
    background: #FEE2E2;
}

.vote-option.abstencion input:checked + .option-label {
    border-color: var(--color-text-light);
    background: #F3F4F6;
}

.btn-vote {
    padding: 0.75rem 2rem;
}

.already-voted {
    background: #D1FAE5;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2rem;
}

.login-to-vote {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2rem;
}

.results-section {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.results-section h3 {
    margin-bottom: 1rem;
}

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

.result-item {
    background: var(--color-background);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-header .label {
    font-weight: 600;
}

.result-item.si .label {
    color: var(--color-success);
}

.result-item.no .label {
    color: var(--color-danger);
}

.result-item.abstencion .label {
    color: var(--color-text-light);
}

.result-bar-container {
    height: 12px;
    background: var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.result-bar-container .result-bar {
    height: 100%;
    border-radius: 6px;
}

.result-bar.si {
    background: var(--color-success);
}

.result-bar.no {
    background: var(--color-danger);
}

.result-bar.abstencion {
    background: var(--color-text-light);
}

.total-votes {
    text-align: center;
    padding-top: 0.5rem;
    color: var(--color-text-light);
}

.referendum-actions {
    margin-top: 2rem;
}

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--color-text);
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(116, 172, 223, 0.2);
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--color-text-light);
}

.auth-link a {
    color: var(--color-accent);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(116, 172, 223, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-page {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.profile-info h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.member-since {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.political-orientation {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.profile-edit-section {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.profile-edit-section h3 {
    margin-bottom: 1rem;
}

.profile-form {
    max-width: 400px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-background);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.tab-btn:hover {
    background: var(--color-surface);
}

.tab-btn.active {
    background: var(--color-accent);
    color: white;
}

.tab-content {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tab-content h3 {
    margin-bottom: 1rem;
}

.mini-proposals-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-proposal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.mini-proposal a {
    color: var(--color-text);
    text-decoration: none;
    flex: 1;
}

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

.mini-proposal .rating {
    color: var(--color-accent);
    font-weight: 600;
    margin-left: 1rem;
}

.mini-proposal .vote-value {
    color: var(--color-success);
    font-weight: 600;
}

.mini-proposal .vote-date {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.referendum-votes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.referendum-vote-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.referendum-vote-item a {
    color: var(--color-text);
    text-decoration: none;
    flex: 1;
}

.referendum-vote-item a:hover {
    color: var(--color-accent);
}

.vote-choice {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.vote-choice.vote-si {
    background: #D1FAE5;
    color: #047857;
}

.vote-choice.vote-no {
    background: #FEE2E2;
    color: #B91C1C;
}

.vote-choice.vote-abstencion {
    background: #E5E7EB;
    color: #4B5563;
}

/* ============================================
   CREATE PROPOSAL
   ============================================ */

.create-proposal-page {
    max-width: 700px;
    margin: 0 auto;
}

.create-proposal-page h1 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.create-proposal-page .subtitle {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.proposal-form {
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   ADMIN PAGES
   ============================================ */

.admin-page {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-page h1 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

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

.admin-stats-grid .stat-card.warning {
    border: 2px solid var(--color-warning);
}

.admin-actions {
    margin-bottom: 2rem;
}

.admin-actions h2 {
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

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

.admin-table th {
    background: var(--color-surface);
    font-weight: 600;
    color: var(--color-text);
}

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

.admin-table tr.polemica {
    background: #FFFBEB;
}

.admin-table tr.deleted {
    background: #FEF2F2;
    opacity: 0.7;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.admin-form-section {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.admin-form-section h2 {
    margin-bottom: 1rem;
}

.admin-list-section {
    margin-top: 2rem;
}

.admin-list-section h2 {
    margin-bottom: 1rem;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-success {
    background: #D1FAE5;
    color: #047857;
    border: 1px solid #10B981;
}

.alert-error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #EF4444;
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--color-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state h3 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.no-comments {
    color: var(--color-text-light);
    font-style: italic;
    padding: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--color-accent);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-accent);
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
    }
    
    .proposal-card {
        flex-direction: column;
    }
    
    .proposal-voting {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .vote-options {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .referendum-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .feed-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .order-buttons {
        justify-content: center;
    }
}
