/* ==========================================================================
   Grplife Calendar Public Styles & Full-Screen Responsive Event Modal
   ========================================================================== */

.modal-body .event-featured-image img {
    max-height: 200px;
}
.modal-body .event-featured-image {
    text-align: center;
}
.modal-body .event-date-and-time {
    font-size: 22px;
    font-weight: 700;
}

.fc-time-grid-event, .fc-row.fc-rigid {
    overflow: visible !important;
}

section.calendar-wrapper .entry table th, .entry table td {
    padding: 0px 3px !important;
}

.entry-content tr td {
    padding: 0px !important;
}

.fc-content {
    white-space: initial !important;
}

.fc-event {
    border-radius: 4px !important;
    background-color: #202b31 !important;
    border: solid 1px #202b31 !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fc-event-container {
    padding: 0px !important;
}

section .fc-event-container a {
    color: #fff;
}

.fc-row table {
	margin-bottom: 0px !important;
}

.loading-events-wrapper {
    width: 100%;
    height: 300px;
    position: absolute;
    z-index: 10;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-events {
	background-color: rgba(30, 41, 59, 0.9);
	color: #fff;
	padding: 12px 24px;
	border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Full-Screen Responsive Event Detail Modal
   ========================================================================== */

body.grplife-modal-open {
    overflow: hidden !important;
}

.grplife-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.grplife-modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

.grplife-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    max-height: 90dvh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: grplifeModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes grplifeModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.grplife-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.15s ease;
}

.grplife-modal-close:hover {
    background: rgba(15, 23, 42, 0.9);
}

.grplife-modal-scroll {
    overflow-y: auto;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
}

.grplife-modal-hero {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: #0f172a;
    overflow: hidden;
    flex-shrink: 0;
}

.grplife-modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.grplife-modal-content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grplife-modal-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.grplife-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grplife-modal-datetime,
.grplife-modal-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.grplife-icon {
    color: #2563eb;
    flex-shrink: 0;
}

.grplife-modal-body {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
}

.grplife-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
}

.grplife-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.grplife-btn-close {
    background-color: #f1f5f9;
    color: #475569;
}

.grplife-btn-close:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.grplife-btn-register {
    background: linear-space, #2563eb;
    background-color: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.grplife-btn-register:hover {
    background-color: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .grplife-modal-container {
        max-height: 95vh;
        max-height: 95dvh;
        border-radius: 12px;
    }
    .grplife-modal-hero {
        height: 180px;
    }
    .grplife-modal-content {
        padding: 20px 18px;
        gap: 16px;
    }
    .grplife-modal-title {
        font-size: 20px;
    }
    .grplife-modal-footer {
        flex-direction: column-reverse;
    }
    .grplife-modal-footer .grplife-btn {
        width: 100%;
    }
}

/** added from merge attempt **/

/* Event Modal Styles */
.modal-body .event-modal-content {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.modal-body .event-modal-image {
    flex: 0 0 40%;
    padding: 15px;
}

.modal-body .event-modal-details {
    flex: 0 0 60%;
    padding: 15px;
}

.modal-body .event-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

.modal-body .event-date-and-time {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
}

.modal-body .event-date-and-time .event-time {
    font-size: 16px;
    font-weight: 400;
    color: #777;
}

.modal-body .event-detail {
    margin-top: 15px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .modal-body .event-modal-image,
    .modal-body .event-modal-details {
        flex: 0 0 100%;
    }
    
    .modal-body .event-modal-image {
        margin-bottom: 15px;
    }
    
    .modal-body .event-featured-image img {
        max-height: 250px;
    }
}

.fc-time-grid-event, .fc-row.fc-rigid {
    overflow: visible !important;
}

section.calendar-wrapper .entry table th, .entry table td {
    padding: 0px 3px !important;
}

.entry-content tr td {
    padding: 0px !important;
}

.fc-content {
    white-space: initial !important;
}

.fc-event {
    border-radius: 0px !important;
    background-color: #202b31 !important;
    border: solid 1px #202b31 !important;
}

.fc-event-container {
    padding: 0px !important;
}

section .fc-event-container a {
    color: #fff;
}

@media (min-width: 576px){
    .modal-dialog {
        max-width: 700px !important;
    }
}

.modal {
    top: 50px !important;
}

.fc-row table {
	margin-bottom: 0px !important;
}

.loading-events-wrapper {
    width: 100%;
    height: 300px;
    position: absolute;
    z-index: 10;
    left: 0;
}

.loading-events {
	background-color: #222;
	color: #fff;
	padding: 15px;
	margin-top: 40px;
	margin-left: auto;
	margin-right: auto;
	left: -100px;
	width: 200px;
	z-index: 10;
}

/* Event List Styles - Common */
.grplife-event-list ul.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
}

.grplife-event-list .event-item {
    padding: 15px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.grplife-event-list .event-item:last-child {
    border-bottom: none;
}

.grplife-event-list .event-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.grplife-event-list .event-title a {
    color: inherit;
    text-decoration: none;
}

.grplife-event-list .event-title a:hover {
    text-decoration: underline;
}

.grplife-event-list .no-events,
.grplife-event-list .error {
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    font-family: inherit;
}

/* Style 1: Month/Day with Time + Event (like the image) */
.grplife-event-list ul.style1 .event-item {
    display: flex;
    align-items: center;
    padding: 20px 15px;
}

.grplife-event-list ul.style1 .event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding-right: 20px;
    text-align: center;
}

.grplife-event-list ul.style1 .event-month {
    text-transform: uppercase;
    font-size: var(--event-month-size, 1rem);
    font-weight: var(--event-month-weight, bold);
    line-height: 1;
    font-family: inherit;
}

.grplife-event-list ul.style1 .event-day {
    font-size: var(--event-day-size, 2.5rem);
    font-weight: var(--event-day-weight, 700);
    line-height: 1;
    font-family: inherit;
}

.grplife-event-list ul.style1 .event-details {
    flex: 1;
}

.grplife-event-list ul.style1 .event-time {
    font-size: var(--event-time-size, 0.9rem);
    margin-bottom: 5px;
    opacity: 0.8;
    font-family: inherit;
}

.grplife-event-list ul.style1 .event-title {
    font-size: var(--event-title-size, 1.2rem);
    font-weight: var(--event-title-weight, bold);
    font-family: inherit;
}

/* Style 2: Full Date, Time Below, Event Below */
.grplife-event-list ul.style2 {
    background-color: #354064;
    color: #fff;
}

.grplife-event-list ul.style2 .event-item {
    padding: 30px 15px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.grplife-event-list ul.style2 .event-item:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 24px;
}

.grplife-event-list ul.style2 .event-date {
    display: none;
}

.grplife-event-list ul.style2 .event-time {
    font-size: var(--event-time-size, 1.1rem);
    margin-bottom: 10px;
    font-weight: 600;
    font-family: inherit;
}

.grplife-event-list ul.style2 .event-title {
    font-size: var(--event-title-size, 1.5rem);
    font-weight: var(--event-title-weight, bold);
    font-family: inherit;
    margin-bottom: 0;
}

.grplife-event-list ul.style2 .event-title a {
    color: #fff;
}

/* Style 3: Full Date, Event Above Time */
.grplife-event-list ul.style3 .event-item {
    padding: 15px;
}

.grplife-event-list ul.style3 .event-date {
    font-size: var(--event-date-size, 1.1rem);
    margin-bottom: 5px;
    font-weight: var(--event-date-weight, 600);
    font-family: inherit;
}

.grplife-event-list ul.style3 .event-title {
    font-size: var(--event-title-size, 1.2rem);
    font-weight: var(--event-title-weight, bold);
    margin-bottom: 5px;
    font-family: inherit;
}

.grplife-event-list ul.style3 .event-time {
    font-size: var(--event-time-size, 0.9rem);
    opacity: 0.8;
    font-family: inherit;
}

/* Mobile styles for all event lists */
@media (max-width: 767px) {
    /* Style 2 (list view) specific mobile styles to match screenshot */
    .grplife-event-list {
        font-family: "Crimson Text", serif;
    }
    
    .grplife-event-list ul.style2 {
        background-color: #354064;
        list-style-type: disc;
        padding-left: 0;
    }
    
    .grplife-event-list ul.style2 .event-item {
        padding: 25px 25px 25px 35px;
        border-bottom: none;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .grplife-event-list ul.style2 .event-item:before {
        left: 15px;
        content: "•";
        position: absolute;
        color: white;
        font-size: 1.5em;
    }
    
    .grplife-event-list ul.style2 .event-time {
        font-size: 1.05rem;
        font-weight: 300;
        letter-spacing: 0.5px;
        font-family: "Crimson Text", serif;
        color: white;
        margin-bottom: 8px;
    }
    
    .grplife-event-list ul.style2 .event-title {
        font-size: 1.4rem;
        font-weight: 400;
        color: white;
        font-family: "Crimson Text", serif;
        letter-spacing: 0.5px;
    }
    
    .grplife-event-list ul.style2 .event-title a {
        color: white;
    }
    
    /* Style 1 mobile adjustments */
    .grplife-event-list ul.style1 .event-date {
        min-width: 60px;
    }
    
    .grplife-event-list ul.style1 .event-day {
        font-size: 2rem;
    }
}

/* Style 4: Grid with Featured Images */
.grplife-event-list ul.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.grplife-event-list ul.grid.grid-columns-1 {
    grid-template-columns: 1fr;
}

.grplife-event-list ul.grid.grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grplife-event-list ul.grid.grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grplife-event-list ul.grid.grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grplife-event-list ul.grid .grid-item {
    position: relative;
    min-height: 350px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Fixed background color as fallback */
    background-color: #1e2a47;
}

.grplife-event-list ul.grid .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.grplife-event-list ul.grid .event-date-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    z-index: 2;
    min-width: 60px;
}

.grplife-event-list ul.grid .event-day {
    font-size: var(--event-day-size, 2rem);
    font-weight: var(--event-day-weight, 700);
    line-height: 1;
    margin-bottom: 2px;
    font-family: inherit;
}

.grplife-event-list ul.grid .event-month {
    font-size: var(--event-month-size, 0.9rem);
    font-weight: var(--event-month-weight, 400);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.grplife-event-list ul.grid .event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.grplife-event-list ul.grid .event-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #fff;
}

.grplife-event-list ul.grid .event-title {
    font-size: var(--event-title-size, 1.4rem);
    font-weight: var(--event-title-weight, bold);
    margin-bottom: 10px;
    font-family: inherit;
}

.grplife-event-list ul.grid .event-title a {
    color: #fff;
    text-decoration: none;
}

.grplife-event-list ul.grid .event-excerpt {
    font-size: var(--event-time-size, 0.9rem);
    opacity: 0.8;
    font-family: inherit;
    line-height: 1.4;
}

/* Responsive styling for grid */
@media (max-width: 991px) {
    .grplife-event-list ul.grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grplife-event-list ul.grid.grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .grplife-event-list ul.grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .grplife-event-list ul.grid.grid-columns-2,
    .grplife-event-list ul.grid.grid-columns-3,
    .grplife-event-list ul.grid.grid-columns-4 {
        grid-template-columns: 1fr;
    }
    .grplife-event-list ul.grid .grid-item {
        min-height: 350px;
        margin-bottom: 0;
        border-radius: 0;
    }
    .grplife-event-list ul.grid .event-title {
        font-size: 1.6rem;
    }
    .grplife-event-list ul.grid .event-excerpt {
        font-size: 1rem;
    }
	}
	
	
	
	