/*
Theme Name: Ostfrieslandkrimi
Theme URI: https://ostfrieslandkrimi.de/
Author: Loopus
Author URI: https://loopus.tech
Description: Theme for the promotion of the Friesenkuss book - Liquid Design
Version: 1.0.0
License: Proprietary
Text Domain: krimi
*/

:root {
    --liquid-primary: #4facfe;
    --liquid-secondary: #00f2fe;
    --liquid-accent: #fa709a;
    --liquid-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --liquid-gradient-2: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --liquid-gradient-3: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --blob-size: clamp(200px, 30vw, 400px);
    --animation-duration: 20s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}


.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('assets/img/background.jpeg') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(0.7);
}

.liquid-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: url(#gooey);
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0;
    will-change: transform;
    animation: morphing var(--animation-duration) ease-in-out infinite;
    transition: opacity 0.8s ease-out, transform 0.1s ease-out;
}

.blob-1 {
    width: var(--blob-size);
    height: var(--blob-size);
    background: var(--liquid-gradient-1);
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.blob-2 {
    width: calc(var(--blob-size) * 0.8);
    height: calc(var(--blob-size) * 0.8);
    background: var(--liquid-gradient-2);
    top: 60%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.blob-3 {
    width: calc(var(--blob-size) * 1.2);
    height: calc(var(--blob-size) * 1.2);
    background: var(--liquid-gradient-3);
    bottom: 10%;
    left: 50%;
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: translate(-20px, 20px) rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: translate(10px, -15px) rotate(270deg) scale(1.05);
    }
}


.site-header {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-header .logo:hover {
    transform: scale(1.05);
}


.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 5;
}

.content-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 50px;
    border-radius: 30px;
    max-width: 700px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.content-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(79, 172, 254, 0.2) 0%,
        transparent 50%
    );
    animation: liquidRotate 15s linear infinite;
    pointer-events: none;
}

@keyframes liquidRotate {
    to { transform: rotate(360deg); }
}

.content-panel h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.5;
    font-weight: 600;
}

.format-buttons {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.format-btn {
    flex: 1;
    min-width: 220px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
    will-change: transform;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.format-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.format-btn:hover::before {
    width: 300px;
    height: 300px;
}

.format-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 
        0 10px 30px rgba(37, 99, 235, 0.4),
        0 5px 15px rgba(59, 130, 246, 0.3);
}

.format-btn.active {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    transform: scale(0.98);
    box-shadow: 
        inset 0 3px 5px rgba(0, 0, 0, 0.2),
        0 5px 20px rgba(34, 197, 94, 0.3);
}

.format-btn.liquid-ripple {
    animation: liquidRipple 0.6s ease-out;
}

@keyframes liquidRipple {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.email-form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.email-form.active {
    display: block;
    animation: liquidSlideIn 0.6s ease-out forwards;
}

@keyframes liquidSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-form label {
    display: block;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.email-form input[type="email"] {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}

.email-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--liquid-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 30px;
    transition: transform 0.6s;
}

.submit-btn:hover::after {
    transform: translate(-50%, -50%) scale(2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 35px rgba(40, 167, 69, 0.3),
        0 5px 15px rgba(32, 201, 151, 0.2);
}

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

.submit-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
    transform: none;
}

.submit-btn.liquid-pulse {
    animation: liquidPulse 1s ease-out;
}

@keyframes liquidPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.message {
    margin-top: 25px;
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    font-size: 15px;
    backdrop-filter: blur(10px);
    animation: liquidMessageIn 0.5s ease-out;
}

@keyframes liquidMessageIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(32, 201, 151, 0.2) 100%);
    color: #10ff00;
    border: 1px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.2);
}

.message.error {
    background: linear-gradient(135deg, rgba(248, 114, 114, 0.2) 0%, rgba(255, 99, 99, 0.2) 100%);
    color: #ff6b6b;
    border: 1px solid rgba(248, 114, 114, 0.3);
    box-shadow: 0 0 30px rgba(248, 114, 114, 0.2);
}


.site-footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 25px;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--liquid-primary) 25%,
        var(--liquid-secondary) 50%,
        var(--liquid-accent) 75%,
        transparent 100%
    );
    animation: liquidFooterLine 8s linear infinite;
}

@keyframes liquidFooterLine {
    to {
        background-position: 200% 0;
    }
}

.site-footer p {
    margin-bottom: 10px;
    font-size: 14px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.site-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--liquid-primary) 0%, var(--liquid-secondary) 100%);
    transition: width 0.3s ease;
}

.site-footer a:hover {
    color: white;
}

.site-footer a:hover::after {
    width: 100%;
}


.liquid-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--liquid-primary) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease-out;
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .blob {
        display: none;
    }
}


@media (max-width: 768px) {
    :root {
        --blob-size: clamp(150px, 40vw, 250px);
        --animation-duration: 30s;
    }
    
    .format-buttons {
        flex-direction: column;
    }
    
    .content-panel {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .content-panel h1 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }
    
    .blob {
        filter: blur(60px);
    }
}

@media (hover: none) {
    .format-btn:hover::before {
        width: 0;
        height: 0;
    }
    
    .submit-btn:hover::after {
        transform: translate(-50%, -50%) scale(0);
    }
}


.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.success-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
}

.modal-icon::after {
    content: '✓';
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.modal-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-close {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}