/* ================================================
   ICC Events Grid – Frontend Styles
   Brand: Red #bf2a30 | Gold #d2ab67 | Dark Gray #404041
   ================================================ */

:root {
    --icc-red:        #bf2a30;
    --icc-red-dark:   #9e2025;
    --icc-gold:       #d2ab67;
    --icc-gold-dark:  #b8933f;
    --icc-dark:       #404041;
    --icc-mid:        #777779;
    --icc-light:      #dad8d6;
    --icc-white:      #ffffff;
    --icc-radius:     8px;
    --icc-shadow:     0 4px 24px rgba(0,0,0,0.13);
    --icc-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Free event badge */
.icc-modal__free-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #edf7ee;
    color: #2d7a38;
    border: 1px solid #a8d9ab;
    border-radius: 6px;
    padding: 11px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 22px;
}
.icc-modal__free-badge svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #2d7a38;
}

/* ---- Grid ---- */
.icc-events-grid {
    display: grid;
    gap: 28px;
    width: 100%;
}
.icc-events-grid--cols-1 { grid-template-columns: 1fr; }
.icc-events-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.icc-events-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.icc-events-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .icc-events-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .icc-events-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .icc-events-grid--cols-2,
    .icc-events-grid--cols-3,
    .icc-events-grid--cols-4 { grid-template-columns: 1fr; }
}

.icc-no-events {
    color: var(--icc-mid);
    font-style: italic;
    padding: 20px 0;
}

/* ---- Card ---- */
.icc-event-card {
    border-radius: var(--icc-radius);
    overflow: hidden;
    box-shadow: var(--icc-shadow);
    cursor: pointer;
}
.icc-event-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-position: center center;
	background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--icc-light);
}
.icc-event-card__hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--icc-white);
    overflow: hidden;
    transition: height var(--icc-transition);
}
.icc-event-card:hover .icc-event-card__hover {
    height: 42%;
}
.icc-event-card__info {
    width: 100%;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
}
.icc-event-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--icc-dark);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.icc-event-card__date,
.icc-event-card__time {
    font-size: 0.78rem;
    color: var(--icc-mid);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}
.icc-event-card__date svg,
.icc-event-card__time svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--icc-gold);
}
.icc-event-card__btn {
    display: inline-block;
    margin-top: 6px;
    padding: 7px 16px;
    background: var(--icc-red);
    color: var(--icc-white);
    border: none;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
    align-self: flex-start;
    line-height: 1.4;
}
.icc-event-card__btn:hover {
    background: var(--icc-red-dark);
}

/* ---- Modal ---- */
.icc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.icc-modal.is-open {
    display: flex;
}
.icc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(64, 64, 65, 0.75);
    backdrop-filter: blur(3px);
    cursor: pointer;
}
.icc-modal__container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    background: var(--icc-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    animation: iccModalIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes iccModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.icc-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    background: #404041;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1;
    text-decoration: none;
    font-family: Arial, sans-serif;
}
.icc-modal__close:hover {
    background: #bf2a30;
    color: #ffffff !important;
}

.icc-modal__content {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--icc-light) transparent;
}
.icc-modal__content::-webkit-scrollbar { width: 5px; }
.icc-modal__content::-webkit-scrollbar-thumb { background: var(--icc-light); border-radius: 99px; }

/* Spinner */
.icc-modal__spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}
.icc-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--icc-light);
    border-top-color: var(--icc-red);
    border-radius: 50%;
    animation: iccSpin 0.7s linear infinite;
}
@keyframes iccSpin { to { transform: rotate(360deg); } }

/* Modal inner */
.icc-modal__inner {
    padding: 28px 28px 32px;
}
.icc-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--icc-dark);
    margin: 0 0 18px;
    padding-right: 30px;
    line-height: 1.3;
}
.icc-modal__poster {
    width: 100%;
    border-radius: var(--icc-radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.icc-modal__poster img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}
.icc-modal__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    padding: 16px;
    background: #f9f8f7;
    border-radius: var(--icc-radius);
    border-left: 4px solid var(--icc-gold);
}
.icc-modal__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.icc-modal__meta-icon {
    width: 32px;
    height: 32px;
    background: var(--icc-gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icc-modal__meta-icon svg {
    width: 16px;
    height: 16px;
    color: var(--icc-white);
}
.icc-modal__meta-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--icc-mid);
    margin-bottom: 1px;
}
.icc-modal__meta-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--icc-dark);
}
.icc-modal__section {
    margin-bottom: 22px;
}
.icc-modal__section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--icc-red);
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--icc-light);
}
.icc-modal__description {
    font-size: 0.92rem;
    color: var(--icc-mid);
    line-height: 1.65;
    margin: 0;
}
/* Payment table */
.icc-modal__payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.icc-modal__payment-table tr {
    border-bottom: 1px solid var(--icc-light);
}
.icc-modal__payment-table td {
    padding: 9px 6px;
    color: var(--icc-dark);
}
.icc-modal__payment-amount {
    text-align: right;
    font-weight: 700;
    color: var(--icc-red) !important;
}
.icc-modal__payment-details {
    font-size: 0.85rem;
    color: var(--icc-mid);
    background: #f9f8f7;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.icc-modal__payment-details p { margin: 3px 0; }
.icc-modal__payment-details strong { color: var(--icc-dark); }
.icc-modal__payment-notes {
    font-size: 0.82rem;
    color: var(--icc-mid);
    font-style: italic;
    margin: 4px 0 0;
}
/* Buttons */
.icc-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}
.icc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-align: center;
}
.icc-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.icc-btn--primary {
    background: var(--icc-red);
    color: var(--icc-white);
    border-color: var(--icc-red);
}
.icc-btn--primary:hover {
    background: var(--icc-red-dark);
    border-color: var(--icc-red-dark);
    color: var(--icc-white);
}
.icc-btn--secondary {
    background: var(--icc-gold);
    color: var(--icc-white);
    border-color: var(--icc-gold);
}
.icc-btn--secondary:hover {
    background: var(--icc-gold-dark);
    border-color: var(--icc-gold-dark);
    color: var(--icc-white);
}
.icc-btn--outline {
    background: transparent;
    color: var(--icc-dark);
    border-color: var(--icc-light);
}
.icc-btn--outline:hover {
    border-color: var(--icc-gold);
    color: var(--icc-gold-dark);
}
