/* Cookie Consent Banner Styles for CLCK.IT.COM */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(15, 15, 15, 0.98) 100%);
    border-top: 1px solid rgba(229, 224, 216, 0.2);
    padding: 1.5rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #E5E0D8;
    margin: 0 0 0.5rem 0;
}

.cookie-consent-description {
    font-size: 0.875rem;
    color: rgba(229, 224, 216, 0.7);
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.cookie-btn-accept {
    background: #E5E0D8;
    color: #0A0A0A;
}

.cookie-btn-accept:hover {
    background: #F5F0E8;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: #E5E0D8;
    border: 1px solid rgba(229, 224, 216, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(229, 224, 216, 0.1);
    border-color: rgba(229, 224, 216, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(229, 224, 216, 0.8);
    border: none;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: #E5E0D8;
}

/* Settings Modal */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: #1A1A1A;
    border: 1px solid rgba(229, 224, 216, 0.2);
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(229, 224, 216, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #E5E0D8;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: rgba(229, 224, 216, 0.6);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cookie-modal-close:hover {
    color: #E5E0D8;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(229, 224, 216, 0.1);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.cookie-category-header h4 {
    margin: 0;
    font-size: 1.125rem;
    color: #E5E0D8;
    font-weight: 600;
}

.cookie-category-description {
    color: rgba(229, 224, 216, 0.6);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-toggle-always {
    color: rgba(229, 224, 216, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Toggle Switch */

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(229, 224, 216, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

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

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

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

/* Modal Footer */

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(229, 224, 216, 0.1);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-btn-primary {
    background: #E5E0D8;
    color: #0A0A0A;
}

.cookie-btn-primary:hover {
    background: #F5F0E8;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: transparent;
    color: #E5E0D8;
    border: 1px solid rgba(229, 224, 216, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(229, 224, 216, 0.1);
    border-color: rgba(229, 224, 216, 0.5);
}

/* Settings Icon (Fixed Bottom-Left) */

.cookie-settings-icon {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(229, 224, 216, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.cookie-settings-icon:hover {
    background: rgba(26, 26, 26, 1);
    border-color: rgba(229, 224, 216, 0.4);
    transform: scale(1.05);
}

.cookie-settings-icon svg {
    width: 24px;
    height: 24px;
    fill: #E5E0D8;
}

/* Responsive */

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-content {
        width: 95%;
    }

    .cookie-settings-icon {
        bottom: 5rem; /* Move up to avoid mobile browser bars */
    }
}
