/**
 * Cookie Consent Banner Styles for Watercolor Hub
 * Version: v6.0 Build 030
 * Modern, accessible, and mobile-responsive cookie consent UI
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.cookie-consent-banner.cookie-banner-show {
    transform: translateY(0);
}

.cookie-consent-banner.cookie-banner-hide {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ecf0f1;
}

.cookie-consent-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #bdc3c7;
}

.cookie-details {
    font-size: 12px;
    color: #95a5a6;
    line-height: 1.4;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

/* Cookie Buttons */
.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cookie-btn i {
    font-size: 12px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.cookie-btn-decline {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.cookie-btn-decline:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.cookie-btn-settings {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-settings:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.cookie-settings-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookie-settings-content h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 22px;
    text-align: center;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.cookie-status-required {
    background: #95a5a6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.cookie-category p {
    margin: 0 0 10px 0;
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-details-small {
    font-size: 12px;
    color: #7f8c8d;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.cookie-toggle 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: 25px;
}

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

input:checked + .cookie-slider {
    background-color: #3498db;
}

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

.cookie-settings-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

/* Thank You Message */
.cookie-thank-you {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
    z-index: 10002;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.cookie-thank-you.cookie-thank-you-show {
    transform: translateX(0);
    opacity: 1;
}

.cookie-thank-you.cookie-thank-you-hide {
    transform: translateX(400px);
    opacity: 0;
}

.cookie-thank-you-content {
    font-size: 14px;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        justify-content: center;
        padding: 12px 16px;
    }
    
    .cookie-consent-text h3 {
        font-size: 18px;
    }
    
    .cookie-settings-content {
        padding: 20px;
        margin: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
    
    .cookie-thank-you {
        bottom: 20px;
        right: 20px;
        left: 20px;
        transform: translateY(200px);
    }
    
    .cookie-thank-you.cookie-thank-you-show {
        transform: translateY(0);
    }
    
    .cookie-thank-you.cookie-thank-you-hide {
        transform: translateY(200px);
    }
}

@media (max-width: 480px) {
    .cookie-consent-text h3 {
        font-size: 16px;
    }
    
    .cookie-consent-text p {
        font-size: 13px;
    }
    
    .cookie-details {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .cookie-btn {
        font-size: 13px;
        padding: 10px 14px;
    }
}