/**
 * Cosmick Events Plugin Styles
 * Clean and minimal styling that inherits theme styles
 */

/* Main Events Container */
.cosmick-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section top margin override */
.cosmick-events-upcoming {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* Latest Event Shortcode Styles */
.cosmick-latest-event-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cosmick-latest-event-card {
    margin-bottom: 20px;
}

.cosmick-latest-event-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cosmick-view-all-events {
    color: #01a982;
    text-decoration: none;
    font-weight: 600;
}

.cosmick-view-all-events:hover {
    color: #008f6b;
    text-decoration: underline;
}

/* Events Header */
.cosmick-events-header {
    text-align: center;
    margin-bottom: 40px;
}

.cosmick-events-title {
    /*font-size: 2.5em;*/
    color: #01a982;
    margin-bottom: 10px;
    font-weight: 700;
}

.cosmick-events-subtitle {
    /*font-size: 1.2em;*/
    color: #666;
    margin-bottom: 0;
}

/* Upcoming Events Grid */
.cosmick-events-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 60px;
}

/* Event Card */
.cosmick-event-card {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    display: flex;
    min-height: 120px;
    margin-bottom: 0;
}

.cosmick-event-card:hover {
    transform: none;
    box-shadow: none;
}

/* Date Section (Left) */
.cosmick-event-date-section {
    width: 120px;
    min-width: 120px;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-right: 1px solid #e0e0e0;
}

.cosmick-event-month {
    font-size: 12px;
    font-weight: 400;
    color: #333333;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.5px;
}

.cosmick-event-day {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    line-height: 1;
    text-align: center;
}

/* Details Section (Right) */
.cosmick-event-details-section {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cosmick-event-content {
    padding: 0;
}

.cosmick-event-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: #01a982;
}

.cosmick-event-title a {
    color: #01a982;
    text-decoration: none;
    transition: none;
}

.cosmick-event-title a:hover {
    color: #01a982;
    text-decoration: underline;
}

/* Event Meta Information */
.cosmick-event-meta {
    margin-bottom: 20px;
}

.cosmick-event-meta > div {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.cosmick-meta-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    margin-right: 10px;
}

.cosmick-meta-value {
    color: #333;
    flex: 1;
}

/* Event Excerpt */
.cosmick-event-excerpt {
    margin-bottom: 15px;
    color: #333333;
    line-height: 1.5;
    font-size: 16px;
}

/* Event Actions */
.cosmick-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cosmick-event-register,
.cosmick-event-details {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 400;
    transition: none;
    text-transform: none;
    font-size: 14px;
    margin-bottom: 10px;
}

.cosmick-event-register {
    background: #01a982;
    color: #fff;
    border: none;
}

.cosmick-event-register:hover {
    background: #008f6b;
    color: #fff;
}

.cosmick-event-details {
    background: #01a982;
    color: #fff;
    border: none;
}

.cosmick-event-details:hover {
    background: #008f6b;
    color: #fff;
}

/* Read More Button Styles */
.cosmick-read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #01a982;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: none;
    text-transform: none;
    margin-bottom: 10px;
    text-decoration: none;
    min-width: 120px;
    text-align: center;
    justify-content: center;
}

.cosmick-read-more-btn:hover {
    background: #008f6b;
    color: #fff;
}

.cosmick-read-more-btn i {
    margin-right: 5px;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
    transition: none;
}

.cosmick-read-more-btn .read-more-icon {
    transform: translateY(4px);
}

.cosmick-read-more-btn .read-less-icon {
    transform: translateY(4px);
}

/* Event Card Expansion */
.cosmick-event-card {
    transition: none;
    overflow: visible;
}

.cosmick-event-card.expanded {
    min-height: auto;
}

.cosmick-event-excerpt-short,
.cosmick-event-excerpt-full {
    transition: none;
    margin: 0;
    padding: 0;
}

/* Meta Information */
.cosmick-event-meta-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
    padding-top: 0;
}

.cosmick-event-time,
.cosmick-event-location {
    display: flex;
    align-items: center;
    color: #333333;
    font-size: 14px;
}

.cosmick-event-time i,
.cosmick-event-location i {
    margin-right: 5px;
    font-size: 14px;
    color: #333333;
}

/* Calendar Integration */
.cosmick-event-calendar-links {
    display: block !important;
    margin-left: auto;
    flex-wrap: wrap;
    margin-top: 15px;
    clear: both;
}

.cosmick-calendar-links {
    display: block !important;
    margin-top: 15px;
    clear: both;
}

.cosmick-calendar-button {
    display: inline-block !important;
    align-items: center;
    padding: 8px 16px !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    transition: none;
    border: none;
    margin-right: 0.5em;
    margin-bottom: 0.25em;
    min-width: auto;
    text-align: center;
}

.cosmick-calendar-button i {
    margin-right: 0.25em;
    font-size: inherit;
}

.cosmick-google-calendar {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

.cosmick-google-calendar:hover {
    background: #3367d6;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.cosmick-outlook-calendar {
    background: #207ad3;
    color: #fff;
    border-color: #207ad3;
}

.cosmick-outlook-calendar:hover {
    background: #1a6bb8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(32, 122, 211, 0.3);
}

/* Legacy calendar dropdown (keeping for backward compatibility) */
.cosmick-add-to-calendar {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.cosmick-add-to-calendar:hover {
    background: #f5f5f5;
    color: #01a982;
}


/* Empty State */
.cosmick-events-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cosmick-events-empty h3 {
    color: #333;
    margin-bottom: 10px;
}

/* Widget Styles */
.cosmick-events-widget-list {
    margin-bottom: 20px;
}

.cosmick-events-widget-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cosmick-events-widget-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cosmick-events-widget-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.cosmick-events-widget-title a {
    color: #333;
    text-decoration: none;
}

.cosmick-events-widget-title a:hover {
    color: #01a982;
}

.cosmick-events-widget-date,
.cosmick-events-widget-location {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.cosmick-events-widget-date i,
.cosmick-events-widget-location i {
    margin-right: 5px;
    color: #01a982;
}

.cosmick-events-widget-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cosmick-events-widget-calendar-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cosmick-widget-calendar-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    transition: none;
    border: none;
}

.cosmick-widget-calendar-button i {
    margin-right: 0.25em;
    font-size: inherit;
}

.cosmick-widget-calendar-button.cosmick-google-calendar {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

.cosmick-widget-calendar-button.cosmick-google-calendar:hover {
    background: #3367d6;
    color: #fff;
}

.cosmick-widget-calendar-button.cosmick-outlook-calendar {
    background: #0078d4;
    color: #fff;
    border-color: #0078d4;
}

.cosmick-widget-calendar-button.cosmick-outlook-calendar:hover {
    background: #106ebe;
    color: #fff;
}

.cosmick-events-widget-register {
    display: inline-block;
    background: #01a982;
    color: #fff;
    padding: inherit;
    text-decoration: none;
    border-radius: inherit;
    font-size: inherit;
    font-weight: inherit;
    transition: inherit;
}

.cosmick-events-widget-register:hover {
    background: #008f6b;
    color: #fff;
}

.cosmick-events-widget-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cosmick-events-widget-view-all {
    color: #01a982;
    text-decoration: none;
    font-weight: 600;
}

.cosmick-events-widget-view-all:hover {
    text-decoration: underline;
}

.cosmick-events-widget-empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cosmick-events-container {
        padding: 15px;
    }
    
    .cosmick-events-title {
        font-size: 2em;
    }
    
    .cosmick-event-title {
        font-size: 1.5em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cosmick-events-grid {
        gap: 15px;
    }
    
    .cosmick-event-card {
        flex-direction: column;
        min-height: auto;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .cosmick-event-date-section {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        min-width: auto;
    }
    
    .cosmick-event-month {
        margin-right: 10px;
        margin-bottom: 0;
        font-size: 14px;
    }
    
    .cosmick-event-day {
        font-size: 28px;
    }
    
    .cosmick-event-details-section {
        width: 100%;
        padding: 15px;
        padding-right: 20px;
        overflow: hidden;
    }
    
    .cosmick-event-meta-bottom {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .cosmick-event-content {
        padding: 0;
    }
    
    .cosmick-event-excerpt {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        margin-right: 10px;
    }
    
    .cosmick-event-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cosmick-event-register,
    .cosmick-event-details {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .cosmick-event-calendar-links {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }
    
    .cosmick-calendar-button {
        flex: 1;
        min-width: auto;
        justify-content: center;
    }
    
    
    .cosmick-events-widget-calendar-links {
        justify-content: center;
    }
    
    .cosmick-widget-calendar-button {
        flex: 1;
        min-width: auto;
        justify-content: center;
    }
    
}

/* Calendar Dropdown Styles */
.cosmick-calendar-dropdown {
    position: relative;
    display: inline-block;
}

.cosmick-calendar-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.cosmick-calendar-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.cosmick-calendar-dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #01a982;
}

.cosmick-calendar-dropdown-content a:last-child {
    border-bottom: none;
}

.cosmick-calendar-dropdown:hover .cosmick-calendar-dropdown-content {
    display: block;
}

/* Calendar Section Styling */
.cosmick-event-calendar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.cosmick-event-calendar h3 {
    color: #01a982;
    margin-bottom: 15px;
    font-size: 1.2em;
}