/**
 * ============================================
 * TUXPLAYER Theme v4.0 - Modal Styles
 * Nach Entwurf mit Gradient-Header + Custom Scrollbar
 * ============================================
 */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Modal Container */
.modal {
    display: none;
    width: 100%;
    max-width: 700px;
    margin: auto;
}

.modal.active {
    display: block;
    animation: slideDown 0.4s ease-out;
}

/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(13, 13, 13, 0.98));
    border-radius: 20px;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 188, 212, 0.3);
    border: 2px solid rgba(0, 188, 212, 0.5);
    max-height: 85vh;
    overflow-y: auto;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-cyan);
    color: #0a0a0a;
    transform: rotate(90deg);
}

/* Modal Title */
.modal-title {
    color: var(--accent-cyan);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid #333;
}

/* Modal Body */
.modal-body {
    padding: 0 2rem 2rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-body h4 {
    color: #999;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #ccc;
}

.modal-body ul, .modal-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.modal-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
    transition: color 0.3s;
}

.modal-body a:hover {
    color: #00a8cc;
}

/* Modal Forms */
.booking-form, .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.booking-form input,
.booking-form textarea,
.newsletter-form input {
    background: #0f0f0f;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.booking-form input:focus,
.booking-form textarea:focus,
.newsletter-form input:focus {
    border-color: #00d4ff;
    outline: none;
}

.booking-form button,
.newsletter-form button {
    background: #00d4ff;
    color: #0a0a0a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.booking-form button:hover,
.newsletter-form button:hover {
    background: #00a8cc;
    transform: translateY(-2px);
}

/* Shop Products in Modal */
.shop-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* Tour Dates */
.tour-dates {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.tour-date {
    background: #0f0f0f;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #00d4ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-date .date {
    color: #00d4ff;
    font-weight: bold;
    font-size: 1.1rem;
}

.tour-date .location {
    color: #999;
}

/* Modal Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #00d4ff;
    color: #0a0a0a;
}

.btn-primary:hover {
    background: #00a8cc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0a0a;
}

/* Modal Trigger Links */
.modal-trigger {
    cursor: pointer;
    transition: all 0.3s;
}

.modal-trigger:hover {
    color: #00a8cc;
}

/* Animations (aus Entwurf) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .shop-products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .tour-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Schöner Scrollbar NUR in Modals */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #00a8cc;
}

/* Firefox Scrollbar für Modals */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-secondary);
}
