/* * style.css - 2026 Liquid Glass & Glassmorphism Aesthetic
 */

:root {
    /* Dark Mode Theme */
    --bg-base: #0a0a0c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
    
    --color-premium: #fbbf24;
    --color-premium-glow: rgba(251, 191, 36, 0.15);
    
    --orb-1: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 50%);
    --orb-2: radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

[data-theme="light"] {
    /* Light Mode Theme */
    --bg-base: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-highlight: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 32px 64px rgba(15, 23, 42, 0.08);
    
    --color-premium: #d97706;
    --color-premium-glow: rgba(217, 119, 6, 0.12);
    
    --orb-1: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.25) 0%, transparent 50%);
    --orb-2: radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.25) 0%, transparent 50%);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 120px;
}

/* Animierter Liquid Background */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    transition: background 0.8s ease;
}
body::before { background: var(--orb-1); }
body::after { background: var(--orb-2); }

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 28px;
}

.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

header {
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

/* Tabs */
.tabs {
    display: inline-flex;
    gap: 8px;
    background: var(--glass-bg);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
}

.tab {
    padding: 12px 28px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab.active {
    background: var(--glass-highlight);
    color: var(--text-main);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* Card Elements */
.lines-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.line-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.line-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.line-card.premium {
    border-color: rgba(251, 191, 36, 0.25);
}

.line-card .text {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 500;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.line-card.locked {
    cursor: pointer;
}

.line-card.locked .text {
    filter: blur(10px);
    opacity: 0.55;
    user-select: none;
}

.premium-badge {
    position: absolute;
    top: 18px; right: 20px;
    background: var(--color-premium-glow);
    color: var(--color-premium);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Floating Navigation Island */
.bottom-island {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 999px;
    z-index: 1000;
    border: 1px solid var(--glass-border);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
    text-decoration: none;
}

.nav-btn:hover, .nav-btn.active {
    color: var(--text-main);
    transform: scale(1.15);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Modals & Dialogs Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 440px;
    padding: 36px;
    text-align: center;
    transform: scale(0.92) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Forms & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

input, textarea {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:focus, textarea:focus {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
}

.checkbox-group input {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Custom Buttons */
button.btn-primary {
    padding: 18px;
    border-radius: 18px;
    border: none;
    background: var(--text-main);
    color: var(--bg-base);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

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

/* Toast System */
#toast-container {
    position: fixed;
    top: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    max-width: 380px;
    width: 100%;
}

.toast {
    padding: 20px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes toastIn {
    from { transform: translateX(100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

/* Admin Dashboard Specifics */
.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.line-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
    #toast-container {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }
}