/* ==========================================================================
   Cookie Consent Banner - Minimalist GDPR Compliant
   Matches Tanzspiegel Dark Glassmorphism Theme
   UPDATED: More compact, less intrusive on desktop - fixed bottom-right
   ========================================================================== */

/* Banner Container - Fixed to bottom-right on desktop, COMPACT */
.ts-cookie-banner {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: auto;
    z-index: 99998;
    max-width: 320px; /* Smaller - was 420px */
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ts-cookie-banner[aria-hidden="false"] {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Inner Container - Subtle Glass Card */
.ts-cookie-inner {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
    position: relative;
}

/* Subtle top highlight line */
.ts-cookie-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* ==========================================================================
   MAIN BANNER VIEW - COMPACT
   ========================================================================== */

.ts-cookie-main {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
}

/* Cookie Icon - Hidden for clean look */
.ts-cookie-icon {
    display: none;
}

/* Text Content - Compact */
.ts-cookie-text {
    flex: 1;
    min-width: 0;
}

.ts-cookie-text h3 {
    font-family: var(--ts-font-body, 'Outfit', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.ts-cookie-text p {
    font-size: 0.72rem;
    color: #909090;
    margin: 0;
    line-height: 1.4;
}

.ts-cookie-link {
    color: #e84393;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ts-cookie-link:hover {
    color: #ff6ab0;
    text-decoration: underline;
}

/* Action Buttons - Compact row */
.ts-cookie-actions {
    display: flex;
    gap: 0.4rem;
}

/* ==========================================================================
   BUTTONS - SMALLER
   ========================================================================== */

.ts-cookie-btn {
    padding: 0.45rem 0.75rem;
    font-family: var(--ts-font-body, 'Outfit', sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    flex: 1;
    text-align: center;
}

.ts-cookie-btn-outline {
    background: transparent;
    color: #808080;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    color: #b0b0b0;
}

.ts-cookie-btn-primary {
    background: linear-gradient(135deg, #e84393, #d63384);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(232, 67, 147, 0.2);
}

.ts-cookie-btn-primary:hover {
    background: linear-gradient(135deg, #ff6ab0, #e84393);
    box-shadow: 0 3px 10px rgba(232, 67, 147, 0.3);
}

/* ==========================================================================
   SETTINGS PANEL - COMPACT
   ========================================================================== */

.ts-cookie-settings {
    display: none;
    padding: 0.9rem 1rem;
}

.ts-cookie-settings[aria-hidden="false"] {
    display: block;
}

/* Settings Header */
.ts-cookie-settings-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ts-cookie-back {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #808080;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.ts-cookie-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ts-cookie-back svg {
    width: 14px;
    height: 14px;
}

.ts-cookie-settings-header h3 {
    font-family: var(--ts-font-body, 'Outfit', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Cookie Options */
.ts-cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.ts-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.ts-cookie-option:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.ts-cookie-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.ts-cookie-option-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e0e0e0;
}

.ts-cookie-option-desc {
    font-size: 0.6rem;
    color: #707070;
    line-height: 1.25;
}

/* Toggle Switch - Smaller */
.ts-cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ts-cookie-toggle input[type="checkbox"] {
    display: none;
}

.ts-cookie-toggle label {
    position: relative;
    width: 32px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ts-cookie-toggle label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #666666;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ts-cookie-toggle input:checked + label {
    background: rgba(232, 67, 147, 0.35);
}

.ts-cookie-toggle input:checked + label::after {
    background: #e84393;
    transform: translateX(14px);
}

/* Disabled toggle (Essential cookies) */
.ts-cookie-toggle-disabled label {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(232, 67, 147, 0.2);
}

.ts-cookie-toggle-disabled label::after {
    background: #e84393;
    transform: translateX(14px);
}

.ts-cookie-always {
    font-size: 0.55rem;
    color: #e84393;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
}

/* Settings Actions */
.ts-cookie-settings-actions {
    display: flex;
    gap: 0.4rem;
}

.ts-cookie-settings-actions .ts-cookie-btn {
    flex: 1;
}

/* ==========================================================================
   RESPONSIVE - TABLET & MOBILE (full width at bottom)
   ========================================================================== */

@media (max-width: 768px) {
    .ts-cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: none;
        padding: 0 0.5rem 0.5rem;
        transform: translateY(100%);
    }
    
    .ts-cookie-banner[aria-hidden="false"] {
        transform: translateY(0);
    }
    
    .ts-cookie-inner {
        border-radius: 12px;
        max-width: 100%;
    }
    
    .ts-cookie-main {
        padding: 0.85rem 1rem;
        gap: 0.6rem;
    }
    
    .ts-cookie-text h3 {
        font-size: 0.85rem;
    }
    
    .ts-cookie-text p {
        font-size: 0.75rem;
    }
    
    .ts-cookie-actions {
        flex-direction: column;
        gap: 0.35rem;
    }
    
    .ts-cookie-btn {
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.7rem;
    }
    
    /* Settings panel mobile */
    .ts-cookie-settings {
        padding: 0.85rem 1rem;
    }
    
    .ts-cookie-option {
        padding: 0.55rem 0.65rem;
    }
    
    .ts-cookie-option-title {
        font-size: 0.72rem;
    }
    
    .ts-cookie-option-desc {
        font-size: 0.62rem;
    }
    
    .ts-cookie-settings-actions {
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* ==========================================================================
   VERY SMALL SCREENS
   ========================================================================== */

@media (max-width: 400px) {
    .ts-cookie-banner {
        padding: 0 0.35rem 0.35rem;
    }
    
    .ts-cookie-inner {
        border-radius: 10px;
    }
    
    .ts-cookie-main {
        padding: 0.75rem 0.85rem;
    }
    
    .ts-cookie-text h3 {
        font-size: 0.8rem;
    }
    
    .ts-cookie-text p {
        font-size: 0.7rem;
    }
    
    .ts-cookie-btn {
        padding: 0.6rem;
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   LARGE SCREENS
   ========================================================================== */

@media (min-width: 1400px) {
    .ts-cookie-banner {
        bottom: 20px;
        right: 20px;
        max-width: 340px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes ts-cookie-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ts-cookie-banner[aria-hidden="false"] .ts-cookie-inner {
    animation: ts-cookie-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Settings panel transition */
.ts-cookie-main,
.ts-cookie-settings {
    transition: opacity 0.2s ease;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .ts-cookie-banner {
        transition: opacity 0.15s ease;
        transform: none !important;
    }
    
    .ts-cookie-banner[aria-hidden="false"] {
        transform: none !important;
    }
    
    .ts-cookie-banner[aria-hidden="false"] .ts-cookie-inner {
        animation: none;
    }
    
    .ts-cookie-toggle label::after {
        transition: none;
    }
}

/* Focus states */
.ts-cookie-btn:focus-visible,
.ts-cookie-back:focus-visible,
.ts-cookie-link:focus-visible {
    outline: 2px solid #e84393;
    outline-offset: 2px;
}

.ts-cookie-toggle input:focus-visible + label {
    outline: 2px solid #e84393;
    outline-offset: 2px;
}