/* Cookie Consent Styles - Cleantime Dark Theme */

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 2px solid #ffffff;
    padding: 24px 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

#cookie-consent-banner.cookie-consent-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.cookie-consent-text p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: #f0f0f0;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.cookie-consent-btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.cookie-consent-btn-primary:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.cookie-consent-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.cookie-consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.cookie-consent-btn-text {
    background: transparent;
    color: #cccccc;
    border: none;
    padding: 12px 16px;
    text-decoration: underline;
}

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

/* Cookie Consent Modal */
#cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

#cookie-consent-modal.cookie-consent-modal-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#cookie-consent-modal.cookie-consent-modal-visible .cookie-consent-modal-content {
    transform: scale(1);
}

.cookie-consent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.cookie-consent-modal-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

.cookie-consent-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cookie-consent-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.cookie-consent-modal-intro {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cookie-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.cookie-consent-category {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

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

.cookie-consent-category-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.cookie-consent-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-consent-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 26px;
}

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

.cookie-consent-toggle input:checked + .cookie-consent-toggle-slider {
    background-color: #28a745;
}

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

.cookie-consent-toggle input:disabled + .cookie-consent-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-consent-category-description {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 20px 16px;
    }

    .cookie-consent-content {
        gap: 16px;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-btn {
        width: 100%;
        padding: 14px 24px;
    }

    .cookie-consent-modal-content {
        padding: 24px 20px;
        margin: 10px;
    }

    .cookie-consent-modal-header h2 {
        font-size: 1.5rem;
    }

    .cookie-consent-category {
        padding: 16px;
    }

    .cookie-consent-modal-actions {
        flex-direction: column;
    }

    .cookie-consent-modal-actions .cookie-consent-btn {
        width: 100%;
    }
}

/* Ensure banner appears below floating CTA */
@media (min-width: 769px) {
    #cookie-consent-banner {
        z-index: 10000; /* Below floating CTA which is 1100 */
    }
}

/* Accessibility */
.cookie-consent-btn:focus,
.cookie-consent-close-btn:focus,
.cookie-consent-toggle input:focus + .cookie-consent-toggle-slider {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Prevent scrolling when modal/banner is open */
body.cookie-consent-open {
    overflow: hidden;
}

