/*
 * ============================================================================
 * MERITONE - Kleve Modal Styles
 * ============================================================================
 *
 * MIT License
 * Copyright (c) 2025 MERITONE (Mergim Mavraj)
 * Development by Astoria Systems GmbH
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 * ============================================================================
 * DESCRIPTION
 * ============================================================================
 *
 * Styles for the Kleve Easter Egg modal featuring an animated Schwanenburg
 * castle with swimming swans in MERITONE brand colors.
 *
 * ============================================================================
 */

/* Modal Container */
.kleve-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 18, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kleve-modal.active {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.kleve-modal-content {
    background: var(--dark);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 92, 122, 0.3);
    box-shadow: 0 20px 60px rgba(255, 92, 122, 0.3);
    animation: modalSlideIn 0.5s ease;
}

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

/* Close Button */
.kleve-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.kleve-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Scene Container */
.kleve-scene {
    position: relative;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(180deg, #091219 0%, #0E1A25 60%, #1a3a4a 100%);
}

/* Particles/Stars */
.kleve-particles {
    position: absolute;
    inset: 0;
}

.kleve-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--secondary);
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

.kleve-particles span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.kleve-particles span:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.3s; }
.kleve-particles span:nth-child(3) { top: 5%; left: 50%; animation-delay: 0.6s; }
.kleve-particles span:nth-child(4) { top: 15%; left: 30%; animation-delay: 0.9s; }
.kleve-particles span:nth-child(5) { top: 25%; left: 70%; animation-delay: 1.2s; }
.kleve-particles span:nth-child(6) { top: 8%; left: 90%; animation-delay: 0.2s; }
.kleve-particles span:nth-child(7) { top: 12%; left: 5%; animation-delay: 0.5s; }
.kleve-particles span:nth-child(8) { top: 18%; left: 40%; animation-delay: 0.8s; }
.kleve-particles span:nth-child(9) { top: 22%; left: 60%; animation-delay: 1.1s; }
.kleve-particles span:nth-child(10) { top: 3%; left: 25%; animation-delay: 1.4s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Schwanenburg Castle */
.schwanenburg {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(255, 92, 122, 0.3));
    animation: castleGlow 3s ease-in-out infinite;
}

@keyframes castleGlow {
    0%, 100% { filter: drop-shadow(0 10px 20px rgba(255, 92, 122, 0.3)); }
    50% { filter: drop-shadow(0 10px 30px rgba(255, 92, 122, 0.5)); }
}

/* Window Glow Animation */
.window-glow {
    animation: windowPulse 2s ease-in-out infinite;
}

.window-glow:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes windowPulse {
    0%, 100% { fill: #0E1A25; }
    50% { fill: #3BD5DA; opacity: 0.8; }
}

/* Swans */
.swan {
    position: absolute;
    width: 50px;
    height: auto;
    bottom: 15px;
}

.swan-1 {
    left: 15%;
    animation: swimLeft 8s ease-in-out infinite;
}

.swan-2 {
    right: 15%;
    animation: swimRight 8s ease-in-out infinite;
}

@keyframes swimLeft {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-3px); }
    50% { transform: translateX(20px) translateY(0); }
    75% { transform: translateX(10px) translateY(3px); }
}

@keyframes swimRight {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(3px); }
    50% { transform: translateX(-20px) translateY(0); }
    75% { transform: translateX(-10px) translateY(-3px); }
}

/* Water Reflection */
.water-reflection {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg,
        rgba(59, 213, 218, 0.1) 0%,
        rgba(59, 213, 218, 0.3) 50%,
        rgba(59, 213, 218, 0.1) 100%);
    animation: waterWave 3s ease-in-out infinite;
}

@keyframes waterWave {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.2); opacity: 0.8; }
}

/* Text Styles */
.kleve-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.kleve-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kleve-subtitle {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
}

.kleve-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Maps Button */
.kleve-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.kleve-maps-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 92, 122, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .kleve-modal-content {
        padding: 30px 20px;
    }

    .kleve-title {
        font-size: 2rem;
    }

    .kleve-scene {
        height: 160px;
    }
}
