/**
 * Wolkenbrecher Cookie Consent - Banner Styles
 */

/* CSS Variables (überschrieben durch dynamische Styles) */
:root {
    --wc-primary: #4A7C59;
    --wc-primary-hover: #3d6649;
    --wc-btn-text: #ffffff;
}

/* Overlay */
.wc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wc-overlay.wc-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Banner */
.wc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.4s ease;
}

.wc-banner.wc-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.wc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

.wc-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.wc-banner-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.wc-banner-description {
    color: #555555;
    margin: 0 0 16px 0;
    max-width: 800px;
}

/* Actions */
.wc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.wc-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.wc-btn-primary {
    background: var(--wc-primary);
    color: var(--wc-btn-text);
}

.wc-btn-primary:hover {
    background: var(--wc-primary-hover);
}

.wc-btn-secondary {
    background: transparent;
    color: var(--wc-primary);
    border: 1px solid var(--wc-primary);
}

.wc-btn-secondary:hover {
    background: var(--wc-primary);
    color: var(--wc-btn-text);
}

.wc-btn-link {
    background: none;
    border: none;
    color: #555555;
    text-decoration: underline;
    padding: 12px 8px;
}

.wc-btn-link:hover {
    color: #1a1a1a;
}

/* Settings Panel */
.wc-settings {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.wc-settings.wc-visible {
    display: block;
}

/* Category */
.wc-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wc-category:last-of-type {
    border-bottom: none;
}

.wc-category-info {
    flex: 1;
    padding-right: 20px;
}

.wc-category-title {
    font-weight: 600;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.wc-category-desc {
    color: #555555;
    margin: 0;
    font-size: 13px;
}

/* Toggle Switch */
.wc-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.wc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.wc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.wc-toggle input:checked + .wc-toggle-slider {
    background-color: var(--wc-primary);
}

.wc-toggle input:checked + .wc-toggle-slider:before {
    transform: translateX(22px);
}

.wc-toggle input:disabled + .wc-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reopen Button */
.wc-reopen {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #C4A574;
    border: none;
    cursor: pointer;
    z-index: 999990;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.wc-reopen:hover {
    transform: scale(1.1);
}

.wc-reopen.wc-visible {
    display: flex;
}

.wc-chip {
    position: absolute;
    background: #8B6914;
    border-radius: 50%;
}

.wc-chip-1 {
    width: 8px;
    height: 8px;
    top: 10px;
    left: 12px;
}

.wc-chip-2 {
    width: 6px;
    height: 6px;
    top: 18px;
    right: 10px;
}

.wc-chip-3 {
    width: 7px;
    height: 7px;
    bottom: 10px;
    left: 18px;
}

/* ================================
   Content Blocker Placeholder
   ================================ */

.wc-blocked-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #ccc;
    border-radius: 8px;
    min-height: 200px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.wc-blocked-inner {
    max-width: 400px;
}

.wc-blocked-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #888;
}

.wc-blocked-icon svg {
    width: 100%;
    height: 100%;
}

.wc-blocked-text {
    color: #555;
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
}

.wc-blocked-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 4px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
    background: var(--wc-primary);
    color: var(--wc-btn-text);
}

.wc-blocked-btn:hover {
    background: var(--wc-primary-hover);
}

.wc-blocked-btn-all {
    background: transparent;
    color: var(--wc-primary);
    border: 1px solid var(--wc-primary);
}

.wc-blocked-btn-all:hover {
    background: var(--wc-primary);
    color: var(--wc-btn-text);
}

/* Type-specific styling */
.wc-blocked-youtube .wc-blocked-icon {
    color: #FF0000;
}

.wc-blocked-maps .wc-blocked-icon {
    color: #4285F4;
}

.wc-blocked-calendly .wc-blocked-icon {
    color: #006BFF;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 600px) {
    .wc-banner-inner {
        padding: 16px;
    }
    
    .wc-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .wc-btn {
        width: 100%;
        text-align: center;
    }
    
    .wc-category {
        flex-direction: column;
        gap: 12px;
    }
    
    .wc-toggle {
        align-self: flex-start;
    }
    
    .wc-blocked-content {
        min-height: 150px;
        padding: 16px;
    }
    
    .wc-blocked-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}
