/*
 * Events Registration Plugin Styles
 */

/* Base Styles */
.er-events-list,
.er-events-grid {
    display: grid;
    gap: 30px;
}

.er-events-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Event Cards */
.er-event-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.er-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.er-event-image {
    position: relative;
    overflow: hidden;
}

.er-event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.er-event-card:hover .er-event-image img {
    transform: scale(1.05);
}

.er-event-content {
    padding: 20px;
}

.er-event-header {
    margin-bottom: 15px;
}

.er-event-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.er-event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.er-event-title a:hover {
    color: #3498db;
}

.er-event-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.er-event-type {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.er-event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.er-event-date,
.er-event-location,
.er-event-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.er-icon-calendar,
.er-icon-location,
.er-icon-price {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.er-event-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.er-event-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.er-button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.er-button-primary {
    background: #3498db;
    color: white;
}

.er-button-primary:hover {
    background: #2980b9;
    color: white;
}

.er-button-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.er-button-secondary:hover {
    background: #bdc3c7;
    color: white;
}

.er-button-large {
    padding: 15px 30px;
    font-size: 1rem;
}

.er-button-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Partners Section */
.er-event-partners {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.er-event-partners h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.er-partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.er-partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
}

.er-partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Filters */
.er-filters {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.er-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.er-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.er-filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.er-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 150px;
}

.er-filter-actions {
    display: flex;
    gap: 10px;
}

/* Pagination */
.er-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.er-pagination-page,
.er-pagination-prev,
.er-pagination-next {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.er-pagination-page:hover,
.er-pagination-prev:hover,
.er-pagination-next:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.er-pagination-current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Single Event Page */
.er-event-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.er-event-header {
    text-align: center;
    margin-bottom: 40px;
}

.er-event-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.er-event-featured-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.er-event-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.er-event-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.er-event-datetime {
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.er-event-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .er-event-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.er-event-main-content {
    line-height: 1.8;
}

.er-event-description {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Schedule Section */
.er-event-schedule-section {
    margin-bottom: 40px;
}

.er-event-schedule-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.er-schedule-timeline {
    position: relative;
    padding-left: 30px;
}

.er-schedule-item {
    position: relative;
    padding-bottom: 30px;
    border-left: 2px solid #3498db;
    padding-left: 30px;
}

.er-schedule-item:last-child {
    border-left: none;
}

.er-schedule-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
    border: 2px solid white;
}

.er-schedule-time {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 5px;
}

.er-schedule-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.er-schedule-content p {
    color: #666;
    margin: 0;
}

/* Speakers Section */
.er-event-speakers-section {
    margin-bottom: 40px;
}

.er-event-speakers-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.er-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.er-speaker-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.er-speaker-card:hover {
    transform: translateY(-2px);
}

.er-speaker-photo {
    margin-bottom: 15px;
}

.er-speaker-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.er-speaker-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.er-speaker-info h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.er-speaker-info h3 a:hover {
    color: #3498db;
}

.er-speaker-title {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.er-speaker-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Sidebar */
.er-event-sidebar {
    position: sticky;
    top: 20px;
}

.er-event-details-box,
.er-event-partners-box,
.er-event-registration-box,
.er-event-share-box {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.er-event-details-box h3,
.er-event-partners-box h3,
.er-event-registration-box h3,
.er-event-share-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.er-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.er-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.er-detail-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.er-detail-value {
    color: #555;
}

.er-detail-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.er-detail-link:hover {
    text-decoration: underline;
}

/* Partners Sidebar */
.er-partners-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.er-partner-item {
    text-align: center;
}

.er-partner-item img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.er-partner-item h4 {
    font-size: 0.9rem;
    margin: 0;
}

.er-partner-item h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.er-partner-item h4 a:hover {
    color: #3498db;
}

/* Registration Box */
.er-registration-closed {
    color: #e74c3c;
    font-weight: 500;
}

.er-registration-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Share Box */
.er-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.er-share-button {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.er-share-facebook {
    background: #3b5998;
    color: white;
}

.er-share-facebook:hover {
    background: #2d4373;
}

.er-share-twitter {
    background: #1da1f2;
    color: white;
}

.er-share-twitter:hover {
    background: #1a91da;
}

.er-share-linkedin {
    background: #0077b5;
    color: white;
}

.er-share-linkedin:hover {
    background: #005885;
}

.er-share-email {
    background: #34495e;
    color: white;
}

.er-share-email:hover {
    background: #2c3e50;
}

/* Event Footer */
.er-event-footer {
    border-top: 1px solid #e1e5e9;
    padding-top: 40px;
    margin-top: 40px;
}

.er-related-events {
    margin-bottom: 40px;
}

.er-related-events h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.er-related-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.er-related-event {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.er-related-event h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.er-related-event h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.er-related-event h4 a:hover {
    color: #3498db;
}

.er-related-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

/* Categories */
.er-event-categories h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.er-category-group {
    margin-bottom: 15px;
}

.er-category-group h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.er-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.er-category-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.er-category-tag:hover {
    background: #3498db;
    color: white;
}

/* Archive Page */
.er-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.er-archive-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.er-archive-description {
    color: #666;
    font-size: 1.1rem;
}

.er-filters-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.er-filters-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.er-filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.er-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.er-filter-group label {
    font-weight: 600;
    color: #2c3e50;
}

.er-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.er-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.er-no-events {
    text-align: center;
    padding: 60px 20px;
}

.er-no-events h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.er-no-events p {
    color: #666;
    font-size: 1.1rem;
}

/* Calendar */
.er-calendar {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.er-calendar-header {
    text-align: center;
    margin-bottom: 20px;
}

.er-calendar-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.er-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e1e5e9;
}

.er-calendar-day-header {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.er-calendar-day {
    background: white;
    min-height: 80px;
    padding: 5px;
}

.er-calendar-day-empty {
    background: #f8f9fa;
}

.er-calendar-today {
    background: #e8f4fd;
}

.er-calendar-date {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.er-calendar-events {
    font-size: 0.8rem;
}

.er-calendar-event {
    margin-bottom: 2px;
}

.er-calendar-event a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.er-calendar-event a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .er-events-grid {
        grid-template-columns: 1fr;
    }
    
    .er-event-title {
        font-size: 2rem;
    }
    
    .er-event-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .er-event-sidebar {
        position: static;
    }
    
    .er-speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .er-related-events-grid {
        grid-template-columns: 1fr;
    }
    
    .er-filters-form {
        grid-template-columns: 1fr;
    }
    
    .er-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .er-calendar-grid {
        gap: 0;
    }
    
    .er-calendar-day {
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .er-event-card {
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .er-event-content {
        padding: 15px;
    }
    
    .er-event-title {
        font-size: 1.3rem;
    }
    
    .er-event-meta-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .er-share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .er-share-button {
        flex: 1;
        min-width: 100px;
    }
}

/* Utility Classes */
.er-text-center {
    text-align: center;
}

.er-text-left {
    text-align: left;
}

.er-text-right {
    text-align: right;
}

.er-mb-0 { margin-bottom: 0; }
.er-mb-1 { margin-bottom: 10px; }
.er-mb-2 { margin-bottom: 20px; }
.er-mb-3 { margin-bottom: 30px; }

.er-mt-0 { margin-top: 0; }
.er-mt-1 { margin-top: 10px; }
.er-mt-2 { margin-top: 20px; }
.er-mt-3 { margin-top: 30px; }

.er-p-0 { padding: 0; }
.er-p-1 { padding: 10px; }
.er-p-2 { padding: 20px; }
.er-p-3 { padding: 30px; }

/* Loading States */
.er-loading {
    opacity: 0.6;
    pointer-events: none;
}

.er-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: er-spin 1s linear infinite;
}

@keyframes er-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
