/* ========================================
   ARCHIVO: assets/css/archive-templates.css
   CSS para templates de archivo y taxonomía
   ======================================== */

/* ========================================
   ARCHIVE GENERAL
   ======================================== */

.twingital-events-archive {
    background: #f9fafb;
    min-height: 100vh;
}

/* Hero Header */
.archive-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.archive-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.archive-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Layout */
.archive-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 60px 0;
}

/* ========================================
   SIDEBAR
   ======================================== */

.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #3b82f6;
    color: #1f2937;
}

/* Filter Form */
.events-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.filter-group input[type="text"],
.filter-group input[type="date"],
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.filter-checkboxes label:hover {
    background: #f9fafb;
}

.filter-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-filter {
    padding: 12px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-reset {
    padding: 12px;
    background: #fff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    border-color: #d1d5db;
    color: #374151;
}

/* Featured Events Widget */
.featured-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-event-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.featured-event-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.featured-event-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-event-info {
    flex: 1;
}

.featured-event-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.featured-event-info h4 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-event-info h4 a:hover {
    color: #3b82f6;
}

.featured-event-date {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.archive-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Toolbar */
.archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.results-count {
    font-weight: 600;
    color: #374151;
}

.toolbar-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.orderby-select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.view-switcher {
    display: flex;
    gap: 5px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.view-btn.active {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-btn.active .dashicons {
    color: #3b82f6;
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 30px;
}

.events-grid.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.events-grid.view-list {
    grid-template-columns: 1fr;
}

/* Event Card */
.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.events-grid.view-list .event-card {
    flex-direction: row;
}

.event-card-image {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.events-grid.view-grid .event-card-image {
    height: 240px;
}

.events-grid.view-list .event-card-image {
    width: 320px;
    height: auto;
    flex-shrink: 0;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.1);
}

.event-card-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.event-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-online {
    background: #3b82f6;
    color: #fff;
}

.badge-ongoing {
    background: #f59e0b;
    color: #fff;
}

.event-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-date-badge {
    position: absolute;
    top: -25px;
    left: 20px;
    background: linear-gradient(135deg, var(--event-color) 0%, var(--event-color, #3b82f6) 100%);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.events-grid.view-list .event-date-badge {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 15px;
}

.event-date-badge .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.9;
}

.event-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 15px 0 15px 0;
    line-height: 1.3;
}

.events-grid.view-list .event-card-title {
    margin-top: 0;
}

.event-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-card-title a:hover {
    color: var(--event-color, #3b82f6);
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--event-color, #3b82f6);
}

.event-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.event-card-price {
    font-weight: 600;
}

.price-free {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    color: var(--event-color, #3b82f6);
    font-size: 20px;
}

.btn-view-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--event-color, #3b82f6);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-event:hover {
    transform: translateX(3px);
}

.btn-view-event .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* No Events Found */
.no-events-found {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 12px;
}

.no-events-found .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-events-found h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #374151;
}

.no-events-found p {
    color: #6b7280;
    margin: 0 0 30px 0;
}

.btn-reset-filters {
    display: inline-block;
    padding: 12px 24px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #2563eb;
}

/* Pagination */
.events-pagination {
    margin-top: 40px;
}

.events-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.events-pagination li {
    margin: 0;
}

.events-pagination a,
.events-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.events-pagination a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.events-pagination .current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.events-pagination .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ========================================
   TAXONOMY HERO
   ======================================== */

.twingital-events-taxonomy {
    background: #f9fafb;
}

.taxonomy-hero {
    background: linear-gradient(135deg, var(--term-color, #667eea) 0%, var(--term-color, #764ba2) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.taxonomy-hero .breadcrumbs {
    margin-bottom: 20px;
    opacity: 0.9;
}

.taxonomy-hero .breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.taxonomy-hero .breadcrumbs .sep {
    margin: 0 10px;
}

.taxonomy-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.taxonomy-description {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.6;
}

.taxonomy-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.event-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .archive-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .archive-layout {
        grid-template-columns: 1fr;
    }
    
    .archive-sidebar {
        order: 2;
    }
    
    .events-grid.view-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .archive-title,
    .taxonomy-title {
        font-size: 32px;
    }
    
    .archive-hero,
    .taxonomy-hero {
        padding: 40px 0;
    }
    
    .archive-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .toolbar-options {
        justify-content: space-between;
    }
    
    .events-grid.view-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid.view-list .event-card {
        flex-direction: column;
    }
    
    .events-grid.view-list .event-card-image {
        width: 100%;
        height: 240px;
    }
    
    .events-pagination a,
    .events-pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
}