/* Cobra Events Plugin Styles */

/* Event List Wrapper */
.cobra-events-wrapper {
    margin: 2rem 0;
}

.cobra-events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cobra-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* No Events Message */
.cobra-events-no-events {
    padding: 2rem;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Event Card */
.cobra-event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cobra-event-list .cobra-event-card {
    display: flex;
    flex-direction: row;
}

.cobra-event-grid .cobra-event-card {
    display: flex;
    flex-direction: column;
}

/* Event Image */
.cobra-event-image {
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.cobra-event-list .cobra-event-image {
    width: 300px;
}

.cobra-event-grid .cobra-event-image {
    width: 100%;
    height: 200px;
}

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

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

/* Event Content */
.cobra-event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Event Category */
.cobra-event-category {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Event Title */
.cobra-event-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.cobra-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cobra-event-title a:hover {
    color: #0066cc;
}

/* Event Meta */
.cobra-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.cobra-event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cobra-event-meta svg {
    flex-shrink: 0;
}

/* Event Excerpt */
.cobra-event-excerpt {
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.6;
    flex: 1;
}

/* Event Footer */
.cobra-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.cobra-event-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cobra-event-link:hover {
    color: #0052a3;
}

.cobra-event-register {
    padding: 0.625rem 1.25rem;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.cobra-event-register:hover {
    background: #0052a3;
}

/* Event Detail Page */
.cobra-event-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cobra-event-header {
    margin-bottom: 3rem;
}

.cobra-event-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

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

.cobra-event-header-content {
    max-width: 800px;
}

.cobra-event-number {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.cobra-event-detail .cobra-event-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cobra-event-short-info {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Event Body */
.cobra-event-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.cobra-event-main {
    min-width: 0;
}

.cobra-event-main h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
}

/* Info Box */
.cobra-event-info-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cobra-event-info-box h2 {
    margin-top: 0;
}

.cobra-event-info-grid {
    display: grid;
    gap: 1.5rem;
}

.cobra-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cobra-info-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #0066cc;
}

.cobra-info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Event Description */
.cobra-event-description {
    line-height: 1.7;
}

.cobra-event-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Appointments List */
.cobra-appointments-list {
    list-style: none;
    padding: 0;
}

.cobra-appointments-list li {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

/* Files List */
.cobra-files-list {
    list-style: none;
    padding: 0;
}

.cobra-files-list li {
    margin-bottom: 0.5rem;
}

.cobra-files-list a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.cobra-files-list a:hover {
    background: #e9ecef;
}

/* Sidebar */
.cobra-event-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.cobra-event-sidebar > div {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cobra-event-sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Registration Box */
.cobra-registration-box {
    border-color: #0066cc !important;
}

.cobra-ticket-categories {
    margin: 1.5rem 0;
}

.cobra-ticket-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.cobra-ticket-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cobra-ticket-price {
    font-size: 1.25rem;
    color: #0066cc;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cobra-ticket-description {
    font-size: 0.875rem;
    color: #666;
}

.cobra-attendees-info,
.cobra-deadline-info {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cobra-register-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #0066cc;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background 0.2s ease;
}

.cobra-register-button:hover {
    background: #0052a3;
}

/* Contact Box */
.cobra-contact-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cobra-contact-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.cobra-contact-position {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cobra-contact-email,
.cobra-contact-phone {
    margin-bottom: 0.5rem;
}

.cobra-contact-email a,
.cobra-contact-phone a {
    color: #0066cc;
    text-decoration: none;
}

.cobra-contact-email a:hover,
.cobra-contact-phone a:hover {
    text-decoration: underline;
}

/* Back Link */
.cobra-event-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.cobra-back-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.cobra-back-link:hover {
    text-decoration: underline;
}

/* Not Found */
.cobra-event-not-found {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    padding: 2rem;
}

.cobra-event-not-found h1 {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .cobra-event-body {
        grid-template-columns: 1fr;
    }
    
    .cobra-event-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .cobra-event-list .cobra-event-card {
        flex-direction: column;
    }
    
    .cobra-event-list .cobra-event-image {
        width: 100%;
        height: 200px;
    }
    
    .cobra-event-detail .cobra-event-title {
        font-size: 2rem;
    }
    
    .cobra-event-featured-image {
        height: 250px;
    }
    
    .cobra-event-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cobra-event-register {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cobra-events-grid {
        grid-template-columns: 1fr;
    }
    
    .cobra-event-detail {
        padding: 1rem 0.5rem;
    }
    
    .cobra-event-detail .cobra-event-title {
        font-size: 1.5rem;
    }
}
