/**
 * Cookie Consent Banner Styles
 * File: /plugins/cookie-consent/cookie-style.css
 */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.cookie-banner.cookie-hidden {
    transform: translateY(100%);
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-content h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.cookie-content > p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.cookie-categories.show {
    max-height: 500px;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.cookie-category-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

.cookie-switch input:checked + .cookie-slider {
    background-color: #4CAF50;
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #4CAF50;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

/* Cookie Buttons */
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #4CAF50;
    color: white;
}

.cookie-btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.cookie-btn-secondary {
    background: #2196F3;
    color: white;
}

.cookie-btn-secondary:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.cookie-btn-text {
    background: transparent;
    color: #666;
    text-decoration: underline;
}

.cookie-btn-text:hover {
    color: #333;
}

/* Cookie Footer */
.cookie-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.cookie-footer a {
    color: #2196F3;
    text-decoration: none;
}

.cookie-footer a:hover {
    text-decoration: underline;
}

.cookie-separator {
    color: #ccc;
}

#cookie-settings-toggle {
    cursor: pointer;
    font-weight: 500;
}

/* Cookie Settings Button (floating) */
.cookie-settings-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2196F3;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.cookie-settings-button.show {
    opacity: 1;
    transform: scale(1);
}

.cookie-settings-button:hover {
    background: #1976D2;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-container {
        padding: 15px;
    }
    
    .cookie-content h3 {
        font-size: 18px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px;
    }
    
    .cookie-category {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-footer {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-settings-button {
        bottom: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cookie-banner {
        background: rgba(30, 30, 30, 0.98);
    }
    
    .cookie-content h3 {
        color: #f0f0f0;
    }
    
    .cookie-content > p {
        color: #b0b0b0;
    }
    
    .cookie-category {
        background: #2a2a2a;
    }
    
    .cookie-category-info strong {
        color: #f0f0f0;
    }
    
    .cookie-category-info p {
        color: #b0b0b0;
    }
    
    .cookie-btn-text {
        color: #b0b0b0;
    }
    
    .cookie-btn-text:hover {
        color: #f0f0f0;
    }
}