/**
 * Event Manager - Frontend Styles v2.0
 * Salient theme integration
 */

/* ===== FULL LISTING LAYOUT ===== */

.event-manager-listing {
    max-width: 100%;
    margin: 30px 0;
}

.event-item {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.event-row {
    display: flex;
    align-items: flex-start;  /* 👈 Align to top */
    padding: 35px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 25px;
}

.event-row:hover {
    background-color: #f8f8f8;
}

/* Calendar Card - uses Salient theme colors */
.event-calendar-card {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: var(--accent-color, #e05945);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Month - uses Salient extra color or fallback */
.calendar-month {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* Day */
.calendar-day {
    font-size: 2.4em;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
}

/* Year */
.calendar-year {
    font-size: 0.9em;
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
}

/* Event Info */
.event-info {
    flex-grow: 1;
}

.event-title {
    margin: 0 0 15px 0;
    font-size: 2em;
    line-height: 1.2;
    color: #333;
    font-weight: 700;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.event-datetime {
    font-weight: 600;
    font-size: 1.2em;
    color: #333;
}

.event-location {
    color: #666;
    font-size: 1em;
}

.event-location strong {
    color: #333;
}

/* Thumbnail */
.event-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 600px) {
    .event-thumbnail  {
        display: none !important;
    }
}

/* Expand Toggle */
.event-expand-toggle {
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.expand-arrow {
    display: inline-block;
    font-size: 1.3em;
    color: #999;
    transition: transform 0.3s ease;
}

.event-item.expanded .expand-arrow {
    transform: rotate(180deg);
}

/* Expanded Content */
.event-expanded-content {
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    padding: 30px;
}

.event-address strong {
	font-size: 120%;
}
	
.event-address {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.6;
}

.event-map-link {
    color: var(--accent-color, #e05945);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.event-map-link:hover {
    color: var(--extra-color-1, #e05945);
    text-decoration: underline;
}

.event-description {
    margin: 20px 0;
    line-height: 1.7;
}

.event-registration {
    margin-top: 30px;
}

.event-button {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent-color, #2D3E50);
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.event-button:hover {
    background: var(--extra-color-1, #E17055);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== CARD LAYOUT (3-up grid) ===== */

.event-manager-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.event-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

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

.event-card-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.event-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-content {
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.event-card .event-calendar-card {
    flex-shrink: 0;
    width: 80px;
    padding: 10px;
    margin: 0;
}

.event-card .calendar-month {
    font-size: 0.75em;
    margin-bottom: 4px;
}

.event-card .calendar-day {
    font-size: 2em;
}

.event-card .calendar-year {
    font-size: 0.85em;
}

.event-card-info {
    flex-grow: 1;
}

.event-card-title {
    margin: 0 0 12px 0;
    font-size: 1.4em;
    line-height: 1.3;
    color: #333;
    font-weight: 700;
}

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

.event-card-datetime,
.event-card-location {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #666;
}

.event-card-location strong {
    color: #333;
}

.event-card-location a {
    color: var(--accent-color, #2D3E50);
    text-decoration: none;
}

.event-card-location a:hover {
    color: var(--extra-color-1, #E17055);
}

.event-card-action {
    margin-top: 25px;
}

.event-card .event-button {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px 20px;
}

/* Pagination */
.event-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.event-page-link {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.event-page-link:hover {
    background: #f5f5f5;
    border-color: var(--accent-color, #2D3E50);
    color: var(--accent-color, #2D3E50);
}

.event-page-link.current {
    background: var(--accent-color, #2D3E50);
    color: #fff;
    border-color: var(--accent-color, #2D3E50);
}

/* No Events Message */
.event-manager-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 992px) {
    .event-manager-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Full Listing - Mobile */
    .event-row {
        flex-wrap: wrap;
        padding: 20px;
        gap: 15px;
    }
    
    .event-calendar-card {
        order: 1;
        width: 75px;
        padding: 10px;
    }
    
    .calendar-day {
        font-size: 1.8em;
    }
    
    .event-info {
        order: 2;
        flex-basis: calc(100% - 95px);
    }
    
    .event-title {
        font-size: 2.5em;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .event-datetime {
        font-size: 1.1em;
    }
    
    .event-thumbnail {
        order: 3;
        width: 100%;
        height: 200px;
        margin-right: 0;
        border-radius: 8px;
    }
    
    .event-expand-toggle {
        order: 4;
        margin-left: auto;
    }
    
    .event-expanded-content {
        padding: 20px;
    }
    
    .event-button {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* Card Listing - Mobile (stacked) */
    .event-manager-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card-thumbnail {
        height: 180px;
    }
    
    .event-card-content {
        flex-wrap: wrap;
        padding: 20px;
    }
    
    .event-card .event-calendar-card {
        width: 70px;
        padding: 8px;
    }
    
    .event-card .calendar-day {
        font-size: 1.8em;
    }
    
    .event-card-info {
        flex: 1;
        min-width: 0;
    }
    
    .event-card .event-card-action {
        flex-basis: 100%;
        width: 100%;
        margin-top: 20px;
    }
    
    .event-card .event-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .event-calendar-card {
        width: 65px;
        padding: 8px;
    }
    
    .calendar-month {
        font-size: 0.7em;
    }
    
    .calendar-day {
        font-size: 1.6em;
    }
    
    .calendar-year {
        font-size: 0.8em;
    }
    
    .event-title {
        font-size: 2.2em;
    }
    
    .event-meta {
        font-size: 0.9em;
    }
}
