/* ============================================================
   Cookie Consent — Quebec Law 25 Compliant Styles
   ============================================================ */

/* Banner */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease;
}

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

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

.cc-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.cc-banner-text {
    flex: 1;
}

.cc-banner-title {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin: 0 0 0.75rem;
    color: #F4E92A;
}

.cc-banner-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem;
}

.cc-banner-link {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.cc-banner-link a {
    color: #F4E92A;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cc-banner-link a:hover {
    color: #ffffff;
}

.cc-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Buttons */
.cc-btn {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 200px;
}

.cc-btn-accept {
    background: linear-gradient(180deg, #F4E92A 0%, #D4C600 100%);
    color: #2C2C2C;
    box-shadow: 0 4px 15px rgba(244, 233, 41, 0.35);
    border: 2px solid #A89E00;
}

.cc-btn-accept:hover {
    background: linear-gradient(180deg, #E8DA18 0%, #B8AA00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 233, 41, 0.5);
}

.cc-btn-necessary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cc-btn-necessary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.cc-btn-prefs {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    text-decoration: underline;
    padding: 0.5rem 1rem;
    min-width: auto;
    font-size: 0.95rem;
}

.cc-btn-prefs:hover {
    color: #ffffff;
}

/* Modal */
.cc-modal {
    position: fixed;
    inset: 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;
}

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

.cc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cc-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 560px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-modal.cc-show .cc-modal-content {
    transform: translateY(0) scale(1);
}

.cc-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #2C2C2C;
}

.cc-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.cc-modal-title {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: #2C2C2C;
    margin: 0 0 0.75rem;
}

.cc-modal-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 2rem;
}

/* Category rows */
.cc-category {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cc-category:last-of-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

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

.cc-category-label {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: #2C2C2C;
    cursor: pointer;
}

.cc-always-on {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #2D8659;
    background: rgba(45, 134, 89, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.cc-category-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #888;
    margin: 0;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

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

.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 28px;
    transition: background 0.3s ease;
}

.cc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-toggle input:checked + .cc-toggle-slider {
    background: linear-gradient(135deg, #F4E92A, #D4C600);
}

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

.cc-toggle input:focus + .cc-toggle-slider {
    box-shadow: 0 0 0 3px rgba(244, 233, 41, 0.3);
}

/* Modal actions */
.cc-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cc-modal-actions .cc-btn-accept {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-modal-actions .cc-btn-necessary {
    color: #2C2C2C;
    border-color: rgba(0, 0, 0, 0.15);
    flex: 1 1 auto;
    min-width: 0;
}

.cc-modal-actions .cc-btn-necessary:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.03);
    color: #2C2C2C;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .cc-banner-inner {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .cc-banner-actions {
        width: 100%;
    }

    .cc-btn {
        width: 100%;
        min-width: auto;
    }

    .cc-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .cc-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cc-banner-title {
        font-size: 1.35rem;
    }

    .cc-banner-desc {
        font-size: 0.85rem;
    }

    .cc-modal-title {
        font-size: 1.6rem;
    }
}
