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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Hygge Body */
.hygge-body {
    background-color: #e5d3b3;
    color: #4a4340;
}

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

/* Navigation */
.navbar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.9;
}

/* Statistics Section */
.stats-section {
    background: var(--primary-light);
    padding: 40px 20px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-large);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
    filter: grayscale(20%);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive stats */
@media (max-width: 768px) {
    .stats-section {
        padding: 30px 20px;
        margin-top: -20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .stat-label {
        font-size: 1em;
    }
}

/* Intro Section */
.intro {
    background: white;
    padding: 60px 40px;
    margin: 30px 0 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.intro h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Events Section */
.events-section {
    margin: 60px 0;
}

.events-section h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 30px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.book-title {
    font-size: 1.1em;
    margin: 10px 0;
}

.book-author {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.event-date {
    color: #555;
    font-weight: bold;
    margin: 10px 0;
}

.event-stage {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    margin: 15px 0;
    color: #555;
}

.event-actions {
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* Event Detail Page */
.event-detail {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-detail h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5em;
}

.event-stage-banner {
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
}

.stage-propose { background: #3498db; color: white; }
.stage-review { background: #f39c12; color: white; }
.stage-voting { background: #9b59b6; color: white; }
.stage-results { background: #1abc9c; color: white; }
.stage-published { background: #27ae60; color: white; }
.stage-finished { background: #95a5a6; color: white; }

.call-to-action {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin: 30px 0;
}

.call-to-action h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.proposals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.proposal-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.proposal-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.proposal-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.proposal-card h4 {
    color: var(--primary-color);
    margin: 10px 0;
    font-size: 1.1em;
}

.proposal-card .author {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.proposal-card .pages {
    color: #999;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Results Section */
.results-section {
    margin: 40px 0;
}

.results-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vote-count {
    font-size: 1.1em;
    color: #666;
    margin: 10px 0;
}

.results-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.result-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
}

.result-card.position-1 {
    border-color: #ffd700;
    background: linear-gradient(to bottom, #fffbea, white);
}

.result-card.position-2 {
    border-color: #c0c0c0;
}

.result-card.position-3 {
    border-color: #cd7f32;
}

.medal {
    font-size: 3em;
    margin-bottom: 15px;
}

.result-card img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-card h3 {
    color: var(--primary-color);
    margin: 15px 0;
}

.result-card .author {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.score {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    font-weight: bold;
}

.votes {
    color: #3498db;
}

.points {
    color: var(--primary-color);
}

.synopsis {
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;
    text-align: left;
}

/* Selected Book */
.selected-book {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
}

.selected-book h2 {
    color: #155724;
    margin-bottom: 25px;
}

.book-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
}

.large-cover {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.book-details h3 {
    color: #155724;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.event-date-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.date-large {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: bold;
    margin: 15px 0;
}

.synopsis-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.synopsis-box h4 {
    color: #155724;
    margin-bottom: 10px;
}

/* Event Photo Section */
.event-photo-section {
    margin: 30px 0;
    padding: 0;
    width: 100%;
}

.event-photo-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    background: #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-photo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.photo-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95em;
    color: #856404;
    font-weight: 500;
    font-style: italic;
}

/* Valoración del libro debajo de la foto del evento */
.event-rating-below-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 12px 20px;
    background: #fff9e6;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.event-rating-below-photo .rating-stars {
    font-size: 1.2em;
}

.event-rating-below-photo .rating-value {
    font-weight: 700;
    font-size: 1.25em;
    color: var(--primary-color);
}

.event-rating-below-photo .rating-count {
    font-size: 0.9em;
    color: #666;
}

/* Responsive adjustments for event photo */
@media (max-width: 768px) {
    .event-photo-container {
        height: 300px;
    }
    
    .photo-caption {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .event-photo-container {
        height: 220px;
    }
}

/* Forms */
.form-container, .vote-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-container h1, .vote-container h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

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

.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Search Results */
.search-results {
    margin: 20px 0;
    padding: 0;
    background: #f8f9fa;
    border-radius: 12px;
    max-height: 600px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.search-results-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-results-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    word-wrap: break-word;
}

.search-hint {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95em;
}

.search-result-item {
    padding: 20px;
    background: white;
    margin: 10px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 40px 100px 1fr 40px;
    gap: 20px;
    align-items: start;
    position: relative;
    overflow: visible;
}

.search-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.search-result-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-result-item:hover::before {
    transform: scaleY(1);
}

.result-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    flex-shrink: 0;
}

.result-cover {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.result-cover.no-cover {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

.result-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.result-title {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.result-author {
    color: #666;
    font-style: italic;
    margin: 0 0 12px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.meta-item {
    color: #555;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.synopsis-preview {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
}

.result-select-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-result-item:hover .result-select-icon {
    opacity: 1;
    transform: translateX(5px);
}

/* Responsive adjustments for search results */
@media (max-width: 768px) {
    .search-result-item {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .result-number {
        margin: 0 auto 10px;
    }
    
    .result-cover {
        margin: 0 auto 15px;
    }
    
    .result-select-icon {
        display: none;
    }
    
    .result-meta {
        justify-content: center;
    }
    
    .result-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .search-result-item {
        padding: 15px;
    }
    
    .result-cover {
        width: 80px;
        height: 120px;
    }
    
    .result-title {
        font-size: 1em;
    }
}

/* Book Preview */
.book-preview {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: 3px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    animation: slideIn 0.5s ease-out;
}

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

.book-preview h3 {
    color: #155724;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-preview h3::before {
    content: '✓';
    background: #28a745;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.preview-content {
    display: flex;
    gap: 20px;
    align-items: start;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.preview-content img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.preview-content > div {
    flex: 1;
}

.preview-content h4 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.preview-content p {
    margin: 5px 0;
    color: #555;
}

@media (max-width: 768px) {
    .preview-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Vote Page Specific */
.vote-instructions {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.vote-instructions ul {
    list-style: none;
    padding-left: 0;
}

.vote-instructions li {
    padding: 8px 0;
    font-size: 1.05em;
}

.vote-counter {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

.proposals-vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.proposal-vote-card {
    position: relative;
}

.proposal-vote-card input[type="checkbox"] {
    display: none;
}

.proposal-vote-card label {
    display: block;
    background: white;
    border: 3px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.proposal-vote-card input:checked + label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff, var(--primary-light));
    transform: scale(1.05);
}

.checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.proposal-vote-card input:checked + label .checkmark {
    opacity: 1;
    transform: scale(1);
}

.proposal-vote-card img, .proposal-vote-card .no-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.no-cover {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .events-grid,
    .proposals-grid,
    .proposals-vote-grid {
        grid-template-columns: 1fr;
    }
    
    .book-details {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .large-cover {
        margin: 0 auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-podium {
        grid-template-columns: 1fr;
    }
}

.note {
    color: #666;
    font-style: italic;
    font-size: 0.95em;
}

.proposals-preview {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* ========================================
   HYGGE DESIGN - NEW LANDING PAGE
   ======================================== */

/* Hygge Hero */
.hygge-hero {
    background-color: #e5d3b3;
    padding: 80px 20px 60px;
    text-align: center;
}

.hygge-title {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    font-weight: 300;
    color: #3a3330;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hygge-subtitle {
    font-size: 1.1em;
    color: #6b615d;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Video Presentation Section */
.video-presentation-section {
    background-color: #e5d3b3;
    padding: 40px 20px;
    width: 100%;
}

.video-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    position: relative;
}

.video-container::before {
    content: '';
    display: block;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-iframe,
.video-local {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-local {
    object-fit: contain;
    background: #000;
}

/* Responsive video adjustments */
@media (max-width: 968px) {
    .video-container {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .video-presentation-section {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .video-container {
        border-radius: 8px;
    }
    
    .video-presentation-section {
        padding: 20px 10px;
    }
}

/* Hygge Statistics Circles */
.hygge-stats {
    background-color: #e5d3b3;
    padding: 40px 20px 80px;
}

.stats-circles {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-circle {
    text-align: center;
}

.stat-circle-icon {
    width: 80px;
    height: 80px;
    background-color: #d4c3a8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #3a3330;
}

.stat-circle-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #3a3330;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-circle-label {
    font-size: 0.95em;
    color: #6b615d;
    font-weight: 500;
}

/* Events Header */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.events-title {
    font-size: 2.2em;
    color: #3a3330;
    font-weight: 700;
}

.events-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-badge {
    padding: 8px 18px;
    background-color: #d4c3a8;
    border-radius: 20px;
    font-size: 0.9em;
    color: #3a3330;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-badge:hover {
    background-color: #c4b398;
    transform: translateY(-2px);
}

.filter-badge.active {
    background-color: #7a9b76;
    color: white;
    border-color: #7a9b76;
}

/* Hygge Events Grid */
.hygge-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.hygge-event-card {
    background-color: #f5ede0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.hygge-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Event Badge */
.event-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.event-badge-propose {
    background-color: rgba(123, 155, 118, 0.9);
    color: white;
}

.event-badge-review {
    background-color: rgba(212, 165, 116, 0.9);
    color: white;
}

.event-badge-voting {
    background-color: rgba(139, 157, 131, 0.9);
    color: white;
}

.event-badge-results {
    background-color: rgba(180, 151, 134, 0.9);
    color: white;
}

.event-badge-published {
    background-color: rgba(196, 135, 125, 0.9);
    color: white;
}

.event-badge-finished {
    background-color: rgba(122, 155, 118, 0.9);
    color: white;
}

/* Event Image */
.event-image-hygge {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #e5d3b3;
}

.event-image-hygge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-placeholder-hygge {
    width: 100%;
    height: 280px;
    background-color: #d4c3a8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b8f8a;
}

/* Event Info */
.event-info-hygge {
    padding: 24px;
}

.event-title-hygge {
    font-size: 1.4em;
    color: #3a3330;
    margin-bottom: 8px;
    font-weight: 600;
}

.event-date-hygge {
    font-size: 0.9em;
    color: #6b615d;
    margin-bottom: 16px;
}

.event-book-info {
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
}

.event-book-info strong {
    color: #3a3330;
    font-size: 1.05em;
    display: block;
    margin-bottom: 4px;
}

.book-author-small {
    font-size: 0.9em;
    color: #6b615d;
    font-style: italic;
    margin: 0;
}

.proposal-count {
    font-size: 0.95em;
    color: #7a9b76;
    font-weight: 500;
    margin-top: 12px;
}

/* Event Actions */
.event-actions-hygge {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}

.btn-hygge {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-hygge-primary {
    background-color: #d4a574;
    color: white;
}

.btn-hygge-primary:hover {
    background-color: #c49564;
    transform: translateY(-2px);
}

.btn-hygge-vote {
    background-color: #8b9d83;
    color: white;
}

.btn-hygge-vote:hover {
    background-color: #7b8d73;
    transform: translateY(-2px);
}

.btn-hygge-progress {
    background-color: #f5cfc4;
    color: #4a4340;
}

.btn-hygge-progress:hover {
    background-color: #e5bfb4;
    transform: translateY(-2px);
}

.btn-hygge-secondary {
    background-color: #e5d3b3;
    color: #4a4340;
}

.btn-hygge-secondary:hover {
    background-color: #d5c3a3;
    transform: translateY(-2px);
}

.btn-hygge-link {
    padding: 12px 20px;
    text-decoration: none;
    color: #6b615d;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.btn-hygge-link:hover {
    color: #3a3330;
}

/* Hygge Footer */
.hygge-footer {
    background-color: #d4c3a8;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.hygge-footer p {
    color: #4a4340;
    font-size: 0.95em;
}

.hygge-footer a {
    color: #3a3330;
    text-decoration: none;
    font-weight: 600;
}

.hygge-footer a:hover {
    text-decoration: underline;
}

/* Responsive Hygge Design */
@media (max-width: 768px) {
    .hygge-title {
        font-size: 2.5em;
        letter-spacing: 2px;
    }
    
    .hygge-subtitle {
        font-size: 1em;
    }
    
    .stats-circles {
        gap: 40px;
    }
    
    .stat-circle-icon {
        width: 70px;
        height: 70px;
    }
    
    .stat-circle-number {
        font-size: 2em;
    }
    
    .events-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .events-title {
        font-size: 1.8em;
    }
    
    .hygge-events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-actions-hygge {
        flex-direction: column;
    }
}

/* User Management Styles */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.users-table thead {
    background: var(--primary-color);
    color: white;
}

.users-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.users-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.users-table td {
    padding: 15px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .users-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .users-table thead,
    .users-table tbody,
    .users-table tr,
    .users-table td,
    .users-table th {
        display: block;
    }
    
    .users-table thead {
        display: none;
    }
    
    .users-table tr {
        margin-bottom: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px;
    }
    
    .users-table td {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .users-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: var(--primary-color);
    }
}

/* Event Voting Styles */
.event-voting-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.event-vote-form {
    margin: 25px 0;
}

.vote-input-group {
    margin-bottom: 25px;
}

.vote-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.vote-slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.vote-slider-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    outline: none;
    transition: background 0.3s;
}

.vote-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.vote-slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.vote-slider-container input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.vote-display {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.vote-display #voteDisplay {
    font-size: 48px;
}

.vote-max {
    font-size: 24px;
    color: #999;
}

.vote-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 20px;
}

.vote-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.vote-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.vote-stats {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.vote-stats h3 {
    margin-bottom: 20px;
    color: #333;
}

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

.stat-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-box .stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-box .stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .event-voting-section {
        padding: 20px;
    }
    
    .vote-display #voteDisplay {
        font-size: 36px;
    }
    
    .vote-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Statistics Page Styles */
.statistics-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.statistics-page h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.statistics-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 50px;
}

.statistics-section {
    margin-bottom: 60px;
}

.statistics-section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.statistics-title-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.statistics-title-toggle::after {
    content: '▼';
    font-size: 0.8em;
    color: #999;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.statistics-section.is-open .statistics-title-toggle::after {
    transform: rotate(180deg);
}

.statistics-body {
    margin-top: 15px;
}

.section-description {
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

/* Books Ranking */
.books-ranking-grid {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.book-ranking-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.book-ranking-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ranking-position {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
}

.position-number {
    font-size: 28px;
}

.book-ranking-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.book-ranking-cover {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.book-ranking-placeholder {
    width: 100px;
    height: 150px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.book-ranking-info {
    flex: 1;
}

.book-ranking-info h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 8px;
}

.book-author {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.book-rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars-large {
    font-size: 24px;
}

.rating-value-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-count-small {
    font-size: 14px;
    color: #999;
}

.book-ranking-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.book-ranking-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Users Favorites */
.users-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.user-favorites-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-favorites-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.user-favorite-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.user-favorite-header h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 8px;
}

.user-email-small {
    font-size: 0.95em;
    color: #999;
    margin: 0 0 5px 0;
}

.user-books-count {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.user-books-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.user-books-list::-webkit-scrollbar {
    height: 8px;
}

.user-books-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.user-books-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.user-books-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.user-book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    min-width: 200px;
    max-width: 200px;
}

.user-book-item:hover {
    background: #fff9e6;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.user-book-rank {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.rank-number {
    font-size: 20px;
}

.user-book-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.user-book-cover {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.user-book-placeholder {
    width: 100px;
    height: 150px;
    background: #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.user-book-info {
    width: 100%;
    text-align: center;
}

.user-book-info h4 {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.book-author-small {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-bottom: 12px;
}

.user-book-ratings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.user-rating-display,
.average-rating-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 0.85em;
}

.user-rating-display {
    background: #fff9e6;
    border-color: #ffeaa7;
}

.user-rating-label,
.average-rating-label {
    font-size: 0.8em;
    color: #666;
}

.user-rating-value {
    font-size: 1em;
    font-weight: 700;
    color: var(--primary-color);
}

.average-rating-value {
    font-size: 0.95em;
    font-weight: 600;
    color: #666;
}

.user-book-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.9em;
    width: 100%;
    text-align: center;
}

.user-book-link:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .book-ranking-card {
        flex-direction: column;
        text-align: center;
    }
    
    .book-ranking-content {
        flex-direction: column;
        width: 100%;
    }
    
    .book-ranking-link {
        width: 100%;
        text-align: center;
    }
    
    .user-books-list {
        gap: 15px;
    }
    
    .user-book-item {
        min-width: 180px;
        max-width: 180px;
    }
    
    .user-book-cover,
    .user-book-placeholder {
        width: 100px;
        height: 150px;
    }
}

/* Event Rating in Cards */
.event-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #fff9e6;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
}

.rating-stars {
    font-size: 18px;
}

.rating-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.rating-count {
    font-size: 12px;
    color: #666;
}
