/* assets/nicosia-events.css */
.nicosia-events-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.nicosia-events-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #d9e6ee 0%, #03568a 100%);
    color: white;
    border-radius: 20px;
}

.nicosia-events-header h2 {
    font-family: "Poppins", Sans-serif;
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nicosia-events-header p {
    font-family: "Poppins", Sans-serif;
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.nicosia-events-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: #ffffff5e;
    color: #ffff;
    border: 2px solid #03568a;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.tab-btn:hover, .tab-btn.active {
    background: #03568a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #0b588b4a;
}
.nicosia-events-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgb(255 255 255 / 68%);
    color: #d01970;
    border: 1px solid #d01970;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: #d01970;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgb(208 25 112 / 8%);
}

.events-loading, .events-error {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    border-radius: 15px;
}

.events-loading {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

.events-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.nicosia-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
    gap: 30px;
    margin-bottom: 30px;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-card.past-event {
    opacity: 0.7;
}

.event-card.past-event::before {
    content: "PAST EVENT";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(107, 114, 128, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.event-image {
    /*width: 350px !important;
    height: 180px !important;*/
    width: auto;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0 auto;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-content {
    padding: 25px;
}

.event-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-tag {
    padding: 5px 12px;
    background: linear-gradient(45deg, #d9e6ee, #03568a);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-title {
    font-family: 'Poppins' !important;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.event-date {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-content-full {
    color: #444;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 20px;
}

.event-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rsvp-btn {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rsvp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.rsvp-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rsvp-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.no-events {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    color: #667eea;
}

.no-events h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* RSVP Modal Styles */
.rsvp-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.rsvp-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rsvp-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.rsvp-close:hover {
    color: #000;
}

.rsvp-modal h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.refresh-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #d9e6ee, #03568a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 100;
}

.refresh-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* --- Calendar styles --- */
.events-calendar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 30px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cal-title {
    font-weight: 800;
    font-size: 1.5rem;
}

.cal-nav {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    background: #0b588b1a;
    transition: transform .15s ease, box-shadow .2s ease;
}
.cal-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }

.cal-weekdays, .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-weekdays > div {
    text-align: center;
    font-weight: 700;
    color: #03568a;
    padding: 6px 0;
}

.cal-day {
    min-height: 90px;
    border-radius: 12px;
    padding: 8px;
    background: #f7fafc;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cal-day.other-month { opacity: .45; }
.cal-day.today { outline: 2px solid #03568a; background: #e6f3fb; }
.cal-day .date-badge {
    font-weight: 700;
    font-size: .95rem;
}

.badge {
    display: inline-block;
    font-size: .75rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: #0b588b1a;
    color: #03568a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-day.has-events { cursor: pointer; transition: box-shadow .2s ease, transform .1s ease; }
.cal-day.has-events:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-1px); }

.cal-day-panel {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    border-radius: 12px;
}

.cal-day-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cal-event-card {
    background: white;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cal-event-img {
    width: 80px; height: 60px; object-fit: cover; border-radius: 8px;
}

.cal-event-meta { color: #666; font-size: .85rem; margin-bottom: 4px; }

/* --- Latest upcoming (landscape) --- */
.nem-latest {
    display: grid;
    grid-template-columns: 1.3fr 1.7fr;
    gap: 24px;
    align-items: stretch;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 16px;
    overflow: hidden;
}

.nem-latest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.nem-latest-body {
    padding: 8px;
}

.nem-latest-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.nem-chip {
    display: inline-block;
    padding: 6px 10px;
    font-size: .8rem;
    border-radius: 999px;
    background: linear-gradient(45deg, #d9e6ee, #03568a);
    color: #fff;
    font-weight: 600;
}

.nem-latest-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin: 4px 0 6px;
    color: #333;
    line-height: 1.3;
    font-weight: 700;
}

.nem-latest-date {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.nem-latest-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.nem-latest-content {
    color: #444;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 14px;
}

.nem-latest-actions { margin-top: 8px; }

.nem-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(45deg, #d9e6ee, #03568a);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease;
}
.nem-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }

/* Responsive Design */
@media (max-width: 768px) {
    .nem-latest {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .nem-latest-media img { 
        height: 220px; 
        }

    .cal-day { 
        min-height: 72px; 
        }

    .cal-event-card { 
        flex-direction: column; 
        }

    .cal-event-img {
         width: 100%; height: 140px; 
         }
         
    .nicosia-events-wrapper {
        padding: 10px;
    }
    
    .nicosia-events-header h2 {
        font-size: 2rem;
    }
    
    .nicosia-events-grid {
        /*grid-template-columns: 1fr;*/
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 20px;
    }
    
    .nicosia-events-tabs, .nicosia-events-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn, .filter-btn {
        min-width: 200px;
        text-align: center;
    }
    
    .rsvp-modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Success/Error Messages */
.rsvp-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.rsvp-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.rsvp-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Link styles for 'Visit event' */
.event-link { margin-top: .5rem; }
.event-link a { text-decoration: underline; font-weight: 600; }
