/* ===== Cookie Consent Styling ===== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1f1f1f;
    border-top: 1px solid #2a2a2a;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.cookie-banner__text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner__title {
    color: #eaeaea;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cookie-banner__description {
    color: #bdbdbd;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.cookie-banner__description a {
    color: #d4af37;
    text-decoration: none;
}

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

.cookie-banner__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.cookie-modal__content {
    background: #1f1f1f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-modal__header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal__title {
    color: #eaeaea;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.cookie-modal__close {
    background: none;
    border: none;
    color: #bdbdbd;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-modal__close:hover,
.cookie-modal__close:focus {
    background: #2a2a2a;
    color: #eaeaea;
}

.cookie-modal__body {
    padding: 24px;
}

.cookie-modal__description {
    color: #bdbdbd;
    font-size: 14px;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    background: #171717;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.cookie-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category__title {
    color: #eaeaea;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.cookie-category__description {
    color: #bdbdbd;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    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: #2a2a2a;
    transition: 0.3s;
    border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle__slider {
    background-color: #d4af37;
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-modal__footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Floating Action Button */
.cookie-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    background: #d4af37;
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    display: none;
}

.cookie-fab.show {
    display: block;
}

.cookie-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Buttons */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.cookie-btn--primary {
    background: #d4af37;
    color: #000000;
}

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

.cookie-btn--secondary {
    background: transparent;
    color: #eaeaea;
    border: 1px solid #2a2a2a;
}

.cookie-btn--secondary:hover,
.cookie-btn--secondary:focus {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.cookie-btn--ghost {
    background: transparent;
    color: #bdbdbd;
    border: 1px solid #bdbdbd;
}

.cookie-btn--ghost:hover,
.cookie-btn--ghost:focus {
    background: #bdbdbd;
    color: #171717;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner__buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-banner__buttons .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-modal__content {
        margin: 10px;
    }
    
    .cookie-modal__footer {
        flex-direction: column;
    }
    
    .cookie-modal__footer .cookie-btn {
        width: 100%;
    }
    
    .cookie-fab {
        bottom: 10px;
        right: 10px;
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Focus states for accessibility */
.cookie-btn:focus,
.cookie-toggle:focus-within,
.cookie-modal__close:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

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