/* ============================================
   Ruwe Events App Styles (Blog Aesthetic)
   ============================================ */

/* ===== SHARED TOKENS ===== */
:root {
    --event-red: #dc143c;
    --event-dark: #1a1a1a;
    --event-light: #f5f5f5;
    --event-border: #e0e0e0;
    --event-text: #333;
    --event-muted: #777;
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
}

/* ─── Hero ─── */
.events-hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 60%, #700010 100%);
    color: #fff;
    padding: 3.5rem 1rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.events-hero::after {
    content: '\f133'; /* Calendar icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 16rem;
    opacity: 0.03;
    right: -3rem;
    bottom: -4rem;
    color: var(--event-red);
}
.events-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.events-hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Filter Controls ─── */
.events-controls {
    background: #f5f5f5;
    padding: 1.2rem 0;
    border-bottom: 2px solid var(--event-border);
    position: sticky;
    top: 70px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.events-controls-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}
.events-search-form {
    display: flex;
    flex: 1;
    min-width: 200px;
    max-width: 380px;
}
.events-search-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}
.events-search-form input:focus { border-color: var(--event-red); }
.events-search-form button {
    padding: 0.6rem 1rem;
    background: var(--event-red);
    color: #fff;
    border: 2px solid var(--event-red);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}
.events-search-form button:hover { background: #b01030; }

.events-pill-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.events-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #ccc;
    color: #444;
    background: #fff;
    transition: all 0.25s;
    white-space: nowrap;
}
.events-pill:hover, .events-pill.active {
    background: var(--event-red);
    border-color: var(--event-red);
    color: #fff;
}

/* ─── Layout ─── */
.events-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 3rem;
}
@media (min-width: 992px) {
    .events-layout { grid-template-columns: 1fr 320px; }
}

/* ─── Cards Grid ─── */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (min-width: 600px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Event Card (Blog Style) ─── */
.e-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.e-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
    border-color: var(--event-red);
}
.e-card-img-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
}
.e-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.e-card:hover .e-card-img { transform: scale(1.05); }
.e-card-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #1a1a1a, #8b0000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.15);
}
.e-badge {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: var(--event-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.e-badge.live {
    background: #28a745;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.e-card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}
.e-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.2rem;
}
.e-card-title a {
    text-decoration: none;
    color: var(--event-text);
    transition: color 0.2s;
}
.e-card-title a:hover { color: var(--event-red); }
.e-card-excerpt {
    font-size: 0.88rem;
    color: var(--event-muted);
    line-height: 1.6;
    flex: 1;
}
.e-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}
.e-card-meta i { color: var(--event-red); width: 14px; text-align: center; }

/* ─── Featured Block ─── */
.e-featured {
    margin-bottom: 2.5rem;
}
.e-featured-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    transition: transform 0.3s;
}
@media (min-width: 768px) {
    .e-featured-card { grid-template-columns: 1fr 1fr; }
}
.e-featured-card:hover { transform: translateY(-3px); }
.e-featured-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}
.e-featured-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.e-featured-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.8rem 0;
    line-height: 1.35;
}
.e-featured-title a {
    text-decoration: none;
    color: var(--event-text);
}
.e-featured-title a:hover { color: var(--event-red); }

/* ─── Section Heading ─── */
.e-section-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--event-text);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--event-red);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.e-section-heading i { color: var(--event-red); }

/* ─── Sidebar ─── */
.e-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.e-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.e-widget-header {
    background: linear-gradient(135deg, #1a1a1a, #dc143c);
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.e-widget-body { padding: 1.2rem; }
.e-cat-list { list-style: none; padding: 0; margin: 0; }
.e-cat-list li { border-bottom: 1px solid #f0f0f0; }
.e-cat-list li:last-child { border-bottom: none; }
.e-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.e-cat-list a:hover { color: var(--event-red); }

/* ─── Empty State ─── */
.e-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #888;
}
.e-empty i { font-size: 3.5rem; color: #ddd; display: block; margin-bottom: 1rem; }
.e-empty h3 { font-family: var(--font-heading); font-size: 1.3rem; color: #555; margin-bottom: 0.5rem; }

/* Buttons & Pagination */
.e-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--event-red);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}
.e-btn.secondary {
    background: #1a1a1a;
}
.e-btn:hover { background: #b01030; color: #fff; }
.e-btn.secondary:hover { background: #333; color: #fff; }

.e-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.e-page-btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
    color: #333;
    border: 2px solid var(--event-border);
    transition: all 0.25s;
}
.e-page-btn:hover { border-color: var(--event-red); color: var(--event-red); }
.e-page-btn.current {
    background: var(--event-red);
    color: #fff;
    border-color: var(--event-red);
}

/* Format Category Cards */
.cat-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.cat-card-mini {
    background: #f5f5f5;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}
.cat-card-mini:hover {
    background: #fff;
    border-color: var(--event-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.cat-card-mini i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Detail Hero */
.detail-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(26,26,26,0.95));
    background-size: cover, cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    padding: 4rem 1rem 3rem;
    text-align: center;
}
@media (max-width: 768px) {
    .detail-hero {
        padding: 2.5rem 1rem 2rem;
        background-size: cover, contain;
        background-position: center;
    }
}
.detail-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.detail-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 1rem;
}
.detail-meta i { color: var(--event-red); margin-right: 0.4rem; }
