/* =====================================================
   Cookie & Terms Consent Popup Styles
   Bottom slider with smooth animation
   ===================================================== */

/* Consent Popup Container */
.consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.consent-popup.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.consent-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 9999;
}

.consent-popup-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.consent-popup-inner {
    background: linear-gradient(180deg, #1a2730 0%, #111B21 100%);
    border-top: 1px solid rgba(0, 168, 132, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4), 0 -2px 15px rgba(0, 168, 132, 0.1);
    padding: 1rem 1.25rem 1.25rem;
    max-height: 70vh;
    overflow-y: auto;
}

.consent-popup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.consent-popup-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.consent-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #E9EDEF;
    margin: 0;
}

.consent-popup-content {
    max-width: 800px;
    margin: 0 auto;
}

.consent-popup-text {
    color: #8696A0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.consent-popup-text a {
    color: #00A884;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.consent-popup-text a:hover {
    color: #25D366;
    text-decoration: underline;
}

/* Consent Sections */
.consent-sections {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.consent-section {
    background: rgba(42, 57, 66, 0.5);
    border: 1px solid rgba(134, 150, 160, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.consent-section-info {
    flex: 1;
}

.consent-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #E9EDEF;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.consent-section-title .badge {
    font-size: 0.65rem;
    background: rgba(0, 168, 132, 0.2);
    color: #00A884;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
}

.consent-section-desc {
    font-size: 0.75rem;
    color: #8696A0;
    line-height: 1.4;
}

/* Toggle Switch */
.consent-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

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

.consent-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #3B4A54;
    border-radius: 22px;
    transition: all 0.3s ease;
}

.consent-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.consent-toggle input:checked + .consent-toggle-slider {
    background: #00A884;
}

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

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

/* Buttons */
.consent-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.consent-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    min-width: 120px;
}

.consent-btn-accept {
    background: linear-gradient(135deg, #00A884 0%, #25D366 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 132, 0.3);
}

.consent-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.4);
}

.consent-btn-necessary {
    background: rgba(42, 57, 66, 0.8);
    color: #E9EDEF;
    border: 1px solid rgba(134, 150, 160, 0.2);
}

.consent-btn-necessary:hover {
    background: rgba(42, 57, 66, 1);
    border-color: rgba(134, 150, 160, 0.4);
}

.consent-btn-settings {
    background: transparent;
    color: #8696A0;
    padding: 0.875rem 1rem;
    min-width: auto;
}

.consent-btn-settings:hover {
    color: #E9EDEF;
}

/* Privacy Note */
.consent-privacy-note {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(134, 150, 160, 0.1);
}

.consent-privacy-note p {
    color: #8696A0;
    font-size: 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.consent-privacy-note .privacy-icon {
    color: #00A884;
}

/* Settings Panel (Hidden by default) */
.consent-settings-panel {
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(134, 150, 160, 0.1);
}

.consent-settings-panel.visible {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .consent-popup-inner {
        padding: 1rem 0.75rem 1rem;
    }

    .consent-popup-title {
        font-size: 1rem;
    }

    .consent-popup-text {
        font-size: 0.8rem;
    }

    .consent-popup-buttons {
        flex-direction: column;
        gap: 0.4rem;
    }

    .consent-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        min-width: auto;
    }

    .consent-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
    }

    .consent-toggle {
        align-self: flex-end;
    }
}

/* Animation for entrance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Hide scrollbar on popup when not needed */
.consent-popup-inner::-webkit-scrollbar {
    width: 6px;
}

.consent-popup-inner::-webkit-scrollbar-track {
    background: transparent;
}

.consent-popup-inner::-webkit-scrollbar-thumb {
    background: rgba(134, 150, 160, 0.3);
    border-radius: 3px;
}

.consent-popup-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 150, 160, 0.5);
}
