/* ========== MODAL STYLES ========== */
/* Base Modal, Artist Modal, Event Modal, Impressum Modal, Contact Modal */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, rgba(30, 25, 50, 0.95), rgba(20, 15, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 100, 100, 0.3);
    transform: rotate(90deg);
}

.modal-video-container {
    width: 100%;
    height: 300px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: #000;
}

.modal-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-body {
    padding: 2rem;
}

.modal-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #d0d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-tagline {
    font-size: 0.9rem;
    color: rgba(180, 160, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== EVENT MODAL ========== */
.event-modal .modal-content {
    max-width: 800px;
    background: linear-gradient(135deg, rgba(25, 20, 45, 0.98), rgba(15, 10, 30, 0.99));
    border: 1px solid rgba(138, 100, 255, 0.2);
}

.event-modal-header {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.event-modal-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-modal-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(138, 100, 255, 0.4), rgba(255, 100, 180, 0.3));
    animation: eventModalGradient 6s ease-in-out infinite;
}

.event-modal-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(138, 100, 255, 0.2) 0%, transparent 40%);
    animation: eventPatternFloat 10s ease-in-out infinite;
}

.event-modal-icon-container {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-modal-icon {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    animation: eventIconPulse 4s ease-in-out infinite;
}

.event-modal-date-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, rgba(138, 100, 255, 0.9), rgba(180, 100, 255, 0.9));
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow:
        0 10px 30px rgba(138, 100, 255, 0.4),
        0 0 40px rgba(138, 100, 255, 0.2);
    z-index: 10;
    animation: dateBadgeGlow 3s ease-in-out infinite;
}

.event-modal-date-day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.event-modal-date-month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.event-modal-featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.9), rgba(255, 150, 80, 0.9));
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a2e;
    box-shadow: 0 5px 20px rgba(255, 200, 100, 0.4);
    z-index: 10;
    display: none;
}

.event-modal.featured-event .event-modal-featured-badge {
    display: block;
}

.event-modal-body {
    padding: 2.5rem;
}

.event-modal-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #d0d0ff, #ffb8d9);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: eventTitleGradient 6s ease-in-out infinite;
}

.event-modal-venue {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(138, 100, 255, 0.1);
    border: 1px solid rgba(138, 100, 255, 0.2);
    border-radius: 12px;
    width: fit-content;
}

.event-modal-venue svg {
    width: 20px;
    height: 20px;
    color: rgba(180, 160, 255, 0.9);
    flex-shrink: 0;
}

.event-modal-venue span {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.event-modal-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.event-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.event-modal-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.event-modal-tag:hover {
    background: rgba(138, 100, 255, 0.2);
    border-color: rgba(138, 100, 255, 0.4);
    color: #ffffff;
}

.event-modal-tag.highlight {
    background: linear-gradient(135deg, rgba(138, 100, 255, 0.3), rgba(255, 100, 180, 0.2));
    border-color: rgba(138, 100, 255, 0.4);
    color: #ffffff;
}

.event-modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 100, 255, 0.3), rgba(255, 100, 180, 0.3), transparent);
    margin: 1.5rem 0;
}

.event-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.event-modal-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.event-modal-detail-item:hover {
    background: rgba(138, 100, 255, 0.08);
    border-color: rgba(138, 100, 255, 0.2);
}

.event-modal-detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(138, 100, 255, 0.2), rgba(255, 100, 180, 0.15));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-modal-detail-icon svg {
    width: 20px;
    height: 20px;
    color: rgba(180, 160, 255, 0.9);
}

.event-modal-detail-content h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.event-modal-detail-content p {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== IMPRESSUM MODAL ========== */
.impressum-modal .modal-content {
    padding: 3rem;
    max-width: 600px;
}

.impressum-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff, #b8b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impressum-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.impressum-content h3 {
    font-size: 1.1rem;
    color: rgba(180, 160, 255, 1);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.impressum-content h3:first-child {
    margin-top: 0;
}

.impressum-content p {
    margin: 0.5rem 0;
}

/* ========== CONTACT FORM MODAL ========== */
.contact-modal .modal-content {
    padding: 3rem;
    max-width: 500px;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #b8b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: rgba(180, 160, 255, 1);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 100, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(138, 100, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(138, 100, 255, 0.2);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(138, 100, 255, 0.5), rgba(255, 100, 180, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.contact-submit:hover {
    background: linear-gradient(135deg, rgba(138, 100, 255, 0.7), rgba(255, 100, 180, 0.6));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 100, 255, 0.3);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.contact-success.show {
    display: block;
}

.contact-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(100, 255, 150, 0.3), rgba(100, 200, 255, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: rgba(100, 255, 150, 1);
    stroke-width: 2;
    fill: none;
}

.contact-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-success p {
    color: rgba(255, 255, 255, 0.7);
}