/* CloudSynQ Event Builder - Frontend Styles */

/* Enhanced Single Event Page Styles */
.csq-single-event-page {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section */
.csq-event-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 40px;
}

.csq-event-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.csq-event-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.csq-event-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.csq-date-badge-hero {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.csq-date-badge-hero .csq-date-day {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    display: block;
}

.csq-date-badge-hero .csq-date-month {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* Content Wrapper */
.csq-event-content-wrapper {
    padding: 0 40px;
}

/* Event Header */
.csq-event-header {
    margin-bottom: 40px;
    text-align: center;
}

.csq-event-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.csq-event-title-main {
    font-size: 48px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.csq-attendees-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 16px;
}

.csq-attendees-info .csq-attendees-icon {
    color: #3498db;
}

/* Details Grid */
.csq-event-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Main Content */
.csq-event-description h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
}

.csq-event-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 40px;
}

.csq-event-content-text p {
    margin-bottom: 20px;
}

/* Sidebar */
.csq-event-info-card {
    background: var(--csq-card-bg, #f8fafc);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 30px;
    border: 1px solid var(--csq-card-border, #e2e8f0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.csq-event-info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.csq-event-info-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--csq-card-title-color, #1a202c);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.csq-event-info-card h3:before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--csq-accent-color, #3498db);
    border-radius: 2px;
}

.csq-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.csq-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: none;
}

.csq-info-item:hover {
    background: rgba(52, 152, 219, 0.02);
    border-radius: 8px;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.csq-info-icon {
    color: var(--csq-icon-color, #3498db);
    font-size: 20px;
    margin-right: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.csq-info-content {
    flex: 1;
    min-width: 0;
}

.csq-info-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--csq-label-color, #4a5568);
    margin-bottom: 6px;
    line-height: 1.2;
}

.csq-info-value {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--csq-value-color, #1a202c);
    line-height: 1.5;
    word-wrap: break-word;
}

/* Ticket Card */
.csq-ticket-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 20px;
    padding: 30px;
    color: #ffffff;
    text-align: center;
}

.csq-ticket-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.csq-ticket-icon {
    font-size: 24px;
    margin-right: 15px;
    opacity: 0.9;
}

.csq-ticket-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.csq-ticket-info p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* Enhanced Buttons */
.csq-btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

.csq-btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.csq-event-actions-main {
    text-align: center;
    margin-top: 40px;
}

.csq-event-actions-main .csq-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Single Event Card Styles (for widgets) */
.csq-single-event-card {
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.csq-single-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.csq-event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

.csq-event-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

.csq-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.csq-date-day {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.csq-date-month {
    font-size: 10px;
    font-weight: 600;
    color: #7f8c8d;
    line-height: 1;
    margin-top: 2px;
}

.csq-event-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

/* Bookmark button styles removed as requested */

.csq-event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.csq-event-content-main {
    flex: 1;
}

.csq-attendees {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 8px;
}

.csq-attendee-count {
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
}

.csq-event-category {
    display: inline-block;
    background: #e8f4fd;
    color: #2980b9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.csq-event-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.csq-event-meta {
    margin-bottom: 20px;
}

.csq-event-meta > div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.4;
    min-height: 20px;
}

/* Legacy icon support - removed as we now use Font Awesome */

/* Font Awesome Icons Styling - Enhanced */
.csq-meta-icon,
.csq-attendees-icon {
    color: #3498db !important;
    margin-right: 12px;
    font-size: 14px;
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    vertical-align: middle;
    line-height: 16px;
    position: relative;
    top: -1px;
}

.csq-event-actions-bottom {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.csq-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.csq-btn-primary {
    background: #3498db;
    color: #ffffff;
}

.csq-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.csq-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.csq-btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-2px);
}

/* Enhanced Events List Styles */
.csq-events-list {
    width: 100%;
    max-width: none;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 24px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.csq-events-list-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 28px 0;
    letter-spacing: -0.025em;
}

.csq-events-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Vertical Grid Layout */
.csq-events-container.vertical-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.csq-events-container.vertical-layout.columns-1 {
    grid-template-columns: 1fr;
}

.csq-events-container.vertical-layout.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.csq-events-container.vertical-layout.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.csq-events-container.vertical-layout.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Vertical Layout Item Styles */
.csq-events-container.vertical-layout .csq-event-list-item {
    flex-direction: column;
    text-align: left;
    padding: 24px;
}

.csq-events-container.vertical-layout .csq-event-thumbnail {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 16px;
    background: #f5f5f5;
}

.csq-events-container.vertical-layout .csq-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.csq-events-container.vertical-layout .csq-event-info {
    justify-content: flex-start;
}

.csq-events-container.vertical-layout .csq-event-date-badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

/* Alignment Options for Vertical Layout */
.csq-events-container.vertical-layout.align-center .csq-event-list-item {
    text-align: center;
}

.csq-events-container.vertical-layout.align-center .csq-event-date-badge,
.csq-events-container.vertical-layout.align-center .csq-event-location-small {
    align-self: center;
}

.csq-events-container.vertical-layout.align-right .csq-event-list-item {
    text-align: right;
}

.csq-events-container.vertical-layout.align-right .csq-event-date-badge,
.csq-events-container.vertical-layout.align-right .csq-event-location-small {
    align-self: flex-end;
}

.csq-event-list-item {
    display: flex;
    padding: 20px;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.csq-event-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.02), rgba(155, 89, 182, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.csq-event-list-item:hover {
    background: #fafbfc;
    border-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.csq-event-list-item:hover::before {
    opacity: 1;
}

.csq-event-thumbnail {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 20px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    background: #f5f5f5;
}

.csq-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.csq-event-list-item:hover .csq-event-thumbnail img {
    transform: scale(1.05);
}

.csq-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.csq-event-list-item:hover .csq-thumbnail-overlay {
    opacity: 1;
}

.csq-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.csq-event-date-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    align-self: flex-start;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.csq-event-title-small {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.csq-event-location-small {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-top: auto;
}

.csq-location-icon-small {
    color: #3498db !important;
    margin-right: 8px;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

/* Removed attendee styles as requested */

.csq-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .csq-single-event-card {
        margin: 10px;
        max-width: none;
    }
    
    .csq-events-list {
        margin: 10px;
        padding: 15px;
    }
    
    .csq-event-list-item {
        padding: 10px;
    }
    
    .csq-event-thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .csq-event-title {
        font-size: 20px;
    }
    
    .csq-event-actions-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .csq-event-content {
        padding: 15px;
    }
    
    .csq-event-title {
        font-size: 18px;
    }
    
    .csq-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Final Icon Consistency Fixes */
.csq-meta-icon,
.csq-attendees-icon {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.csq-event-meta .csq-event-location,
.csq-event-meta .csq-event-datetime,
.csq-event-meta .csq-event-price,
.csq-event-meta .csq-event-organizer {
    display: flex !important;
    align-items: center !important;
}

.csq-event-datetime {
    align-items: flex-start !important;
}

.csq-event-datetime .csq-meta-icon {
    margin-top: 1px !important;
} 