/* Bootstrap modal essentials (no Bootstrap CSS loaded) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: rgba(0, 0, 0, 0.5);
}
.modal.show {
    display: block;
}
.modal-dialog {
    position: relative;
    max-width: 500px;
    margin: 1.75rem auto;
    pointer-events: none;
}
.modal.show .modal-dialog {
    pointer-events: auto;
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px 24px;
    gap: 8px;
    border: none;
}
.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}
.close:hover {
    opacity: 1;
}
.modal-backdrop {
    display: none;
}
/* Bootstrap form compatibility */
.form-control {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    transition: border-color 0.15s ease-in-out;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: #1ABC71;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(26, 188, 113, 0.15);
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}
.form-check, .custom-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}
.btn-secondary:hover {
    background: #e5e7eb;
}
.btn-success, .btn-primary {
    background: linear-gradient(135deg, #1ABC71 0%, #12A189 50%, #159D5E 100%);
    color: white;
}
.btn-success:hover, .btn-primary:hover {
    opacity: 0.9;
}
.is-invalid {
    border-color: #ef4444 !important;
}
.invalid-feedback {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.invalid-feedback.d-block {
    display: block;
}
/* Bootstrap dropdown essentials */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    min-width: 200px;
    padding: 8px 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.dropdown-menu.show {
    display: block;
}
.dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.dropdown-item:hover {
    background: #f3f4f6;
    color: #10b981;
}
.dropdown-header {
    padding: 8px 16px;
    font-size: 0.875rem;
}
.dropdown-divider {
    border-top: 1px solid #e5e7eb;
    margin: 4px 0;
}

/* Glassmorphism header */
.glass-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* City card hover zoom */
.city-card img {
    transition: transform 0.5s ease;
}
.city-card:hover img {
    transform: scale(1.05);
}

/* Event card hover lift */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Hero gradient - exact Lovable colors */
.hero-gradient {
    background: linear-gradient(135deg, #1ABC71 0%, #12A189 50%, #159D5E 100%);
}

/* Reusable gradient matching Lovable's gradient-hero */
.gradient-hero {
    background: linear-gradient(135deg, #1ABC71 0%, #12A189 50%, #159D5E 100%);
}

/* Glow shadow for gradient elements */
.shadow-glow {
    box-shadow: 0 4px 15px rgba(26, 188, 113, 0.3);
}

/* Stat number tabular */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Mobile menu overlay */
.tw-mobile-overlay {
    transition: opacity 0.3s ease;
}
.tw-mobile-panel {
    transition: transform 0.3s ease;
}

/* Favorite button in bottom-right corner of event cards */
.btn-favorite-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: #d1d5db;
    flex-shrink: 0;
}
.btn-favorite-bottom:hover {
    color: #ef4444;
    background: #fef2f2;
    transform: scale(1.1);
}
.btn-favorite-bottom.active {
    color: #ef4444;
    background: #fef2f2;
}

/* Favorite button (event page) active state */
.btn-favorite.active {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

/* Attendance button active states on event page */
.btn-attendance.active[data-status="going"] {
    background: linear-gradient(135deg, #1ABC71 0%, #12A189 50%, #159D5E 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(26, 188, 113, 0.3);
}
.btn-attendance.active[data-status="maybe"] {
    background: #3b82f6 !important;
    color: white !important;
}

/* Prose-like content styling */
.prose p {
    margin-bottom: 1em;
}
.prose p:last-child {
    margin-bottom: 0;
}

/* Yii2 LinkPager active/disabled page styles */
li.active a,
li.active a:hover {
    background: linear-gradient(135deg, #1ABC71 0%, #12A189 50%, #159D5E 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(26, 188, 113, 0.3);
}
li.disabled a,
li.disabled span {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}
