/**
 * Cookie Consent Banner Styles
 * GDPR-compliant cookie consent banner styling
 *
 * @package muzikansyn
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid #e5e5e5;
}

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

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

@media (min-width: 768px) {
    .cookie-consent-banner__content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

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

.cookie-consent-banner__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1A7A8A;
    font-family: "Space Grotesk", sans-serif;
}

.cookie-consent-banner__description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #333333;
    font-family: "Arimo", sans-serif;
}

.cookie-consent-banner__link {
    color: #1A7A8A;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-banner__link:hover,
.cookie-consent-banner__link:focus {
    color: #006B85;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .cookie-consent-banner__actions {
        width: auto;
        flex-shrink: 0;
    }
}

.cookie-consent-banner__button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent-banner__button:focus {
    outline: 2px solid #1A7A8A;
    outline-offset: 2px;
}

.cookie-consent-banner__button--accept {
    background-color: #1A7A8A;
    color: #ffffff;
}

.cookie-consent-banner__button--accept:hover,
.cookie-consent-banner__button--accept:focus {
    background-color: #006B85;
    color: #ffffff;
}

.cookie-consent-banner__button--reject {
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #e5e5e5;
}

.cookie-consent-banner__button--reject:hover,
.cookie-consent-banner__button--reject:focus {
    background-color: #e5e5e5;
    color: #000000;
}

.cookie-consent-banner__button--settings {
    background-color: transparent;
    color: #1A7A8A;
    border: 1px solid #1A7A8A;
}

.cookie-consent-banner__button--settings:hover,
.cookie-consent-banner__button--settings:focus {
    background-color: #1A7A8A;
    color: #ffffff;
}

/* Cookie Settings Modal */
.cookie-consent-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.cookie-consent-settings-modal--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.cookie-consent-settings-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.cookie-consent-settings-modal__content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    margin: 20px;
}

.cookie-consent-settings-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-consent-settings-modal__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #1A7A8A;
    font-family: "Space Grotesk", sans-serif;
}

.cookie-consent-settings-modal__close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cookie-consent-settings-modal__close:hover,
.cookie-consent-settings-modal__close:focus {
    color: #000000;
    outline: 2px solid #1A7A8A;
    outline-offset: 2px;
    border-radius: 4px;
}

.cookie-consent-settings-modal__body {
    padding: 24px;
}

.cookie-consent-settings-modal__description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    color: #666666;
    font-family: "Arimo", sans-serif;
}

.cookie-consent-settings-modal__category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-consent-settings-modal__category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-consent-settings-modal__category-header {
    margin-bottom: 8px;
}

.cookie-consent-settings-modal__toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-consent-settings-modal__toggle input[type="checkbox"] {
    width: 44px;
    height: 24px;
    margin: 0 12px 0 0;
    cursor: pointer;
    appearance: none;
    background-color: #cccccc;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
}

.cookie-consent-settings-modal__toggle input[type="checkbox"]:checked {
    background-color: #1A7A8A;
}

.cookie-consent-settings-modal__toggle input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-consent-settings-modal__toggle input[type="checkbox"]:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-consent-settings-modal__toggle input[type="checkbox"]:checked:before {
    transform: translateX(20px);
}

.cookie-consent-settings-modal__toggle input[type="checkbox"]:focus {
    outline: 2px solid #1A7A8A;
    outline-offset: 2px;
}

.cookie-consent-settings-modal__toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    font-family: "Space Grotesk", sans-serif;
}

.cookie-consent-settings-modal__category-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0 0 0;
    color: #666666;
    font-family: "Arimo", sans-serif;
    padding-left: 56px;
}

@media (max-width: 600px) {
    .cookie-consent-settings-modal__category-description {
        padding-left: 0;
        margin-top: 12px;
    }
}

.cookie-consent-settings-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.cookie-consent-settings-modal__button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 120px;
}

.cookie-consent-settings-modal__button:focus {
    outline: 2px solid #1A7A8A;
    outline-offset: 2px;
}

.cookie-consent-settings-modal__button--save {
    background-color: #1A7A8A;
    color: #ffffff;
}

.cookie-consent-settings-modal__button--save:hover,
.cookie-consent-settings-modal__button--save:focus {
    background-color: #006B85;
    color: #ffffff;
}

.cookie-consent-settings-modal__button--accept-all {
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #e5e5e5;
}

.cookie-consent-settings-modal__button--accept-all:hover,
.cookie-consent-settings-modal__button--accept-all:focus {
    background-color: #e5e5e5;
    color: #000000;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-consent-settings-modal,
    .cookie-consent-settings-modal__toggle input[type="checkbox"]:before {
        transition: none;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
