/* Contenidor Principal */
.rc-events-container { max-width: 1000px; margin: 0 auto; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* Filtres */
.rc-events-container .filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.rc-events-container .filter-btn { padding: 10px 24px; font-size: 14px; font-weight: bold; text-transform: uppercase; border: 2px solid #e3000f; background: transparent; color: #333; cursor: pointer; transition: all 0.3s; border-radius: 3px; }
.rc-events-container .filter-btn.active, .rc-events-container .filter-btn:hover { background: #e3000f; color: #fff; }

/* Llistat i Targetes */
.rc-events-container .event-list { display: flex; flex-direction: column; gap: 20px; }
.rc-events-container .event-card { position: relative; display: flex; background: #fff; border: 1px solid #eaeaea; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 4px; overflow: hidden; }
.rc-events-container .event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.rc-events-container .card-link { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; text-decoration: none; }

/* ANIMACIÓ DEL CARTELL */
.rc-events-container .event-img { 
    width: 300px; 
    min-height: 250px; 
    background-color: #111; 
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat;
    transition: background-position 4s ease-in-out; 
    border-right: 1px solid #eee;
}
.rc-events-container .event-card:hover .event-img {
    background-position: center bottom;
}

/* Continguts Textuals */
.rc-events-container .event-content { padding: 25px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.rc-events-container .event-title { font-size: 22px; font-weight: 700; margin: 0 0 10px 0; color: #111; }
.rc-events-container .event-meta { font-size: 14px; color: #666; margin-bottom: 15px; display: flex; gap: 15px; align-items: center; font-weight: 600; flex-wrap: wrap;}
.rc-events-container .event-meta span { display: flex; align-items: center; gap: 5px; }
.rc-events-container .event-desc { font-size: 15px; color: #555; line-height: 1.5; margin-bottom: 20px; }

/* Preu i Botons */
.rc-events-container .event-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid #eee; }
.rc-events-container .event-price { font-size: 24px; font-weight: 800; color: #e3000f; }
.rc-events-container .event-btn { position: relative; z-index: 2; background: #e3000f; color: #fff; padding: 12px 25px; text-decoration: none; font-weight: bold; font-size: 14px; text-transform: uppercase; border-radius: 3px; transition: background 0.3s; display: inline-block; }
.rc-events-container .event-btn:hover { background: #b3000b; color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .rc-events-container .event-card { flex-direction: column; }
    .rc-events-container .event-img { width: 100%; height: 350px; border-right: none; border-bottom: 1px solid #eee; }
}

/* --- ESTILS PÀGINA INDIVIDUAL (SINGLE EVENT) --- */

.rc-single-wrap {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.rc-back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.rc-back-link:hover { color: #e3000f; }

.rc-single-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Columna Esquerra: Imatge Sticky */
.rc-single-sidebar {
    position: relative;
}

.rc-single-sticky {
    position: sticky;
    top: 40px; /* Es quedarà fixat a 40px de la part superior en fer scroll */
}

.rc-single-poster {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 1px solid #eaeaea;
    margin-bottom: 20px;
}

.rc-single-btn-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    background: #e3000f;
    color: #fff;
    padding: 16px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(227, 0, 15, 0.3);
}

.rc-single-btn-sidebar:hover { background: #b3000b; transform: translateY(-2px); color: #fff;}

/* Columna Dreta: Contingut */
.rc-single-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 25px 0;
    color: #111;
    line-height: 1.2;
}

.rc-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.rc-meta-item {
    display: flex;
    flex-direction: column;
}

.rc-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.rc-meta-value {
    font-size: 16px;
    color: #222;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Estils enriquits per al contingut de WordPress (Taules, llistes) */
.rc-event-content {
    font-size: 17px;
    line-height: 1.7;
    color: #444;
}

.rc-event-content h2, .rc-event-content h3 {
    color: #111;
    margin-top: 40px;
    margin-bottom: 20px;
}

.rc-event-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.rc-event-content li {
    margin-bottom: 8px;
}

/* LA MÀGIA DE LES TAULES */
.rc-event-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rc-event-content table thead tr {
    background-color: #222;
    color: #ffffff;
    text-align: left;
}

.rc-event-content table th,
.rc-event-content table td {
    padding: 14px 20px;
    border-bottom: 1px solid #ddd;
}

.rc-event-content table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.rc-event-content table tbody tr:last-of-type {
    border-bottom: 2px solid #e3000f;
}

/* Responsive */
@media (max-width: 900px) {
    .rc-single-grid {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    .rc-single-sticky {
        position: static;
    }
    .rc-single-poster {
        max-width: 400px;
        margin: 0 auto 25px auto;
        display: block;
    }
    .rc-single-title {
        font-size: 32px;
        text-align: center;
    }
}