/**
 * AVDB Consent Banner Styles - Huisstijl
 *
 * @package ABVBTheme
 * @since 1.0.0
 */

/* ========================================
   CONSENT BANNER BASE
   ======================================== */

#avdb-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 2px solid #ACD400;
    box-shadow: 0 -4px 20px rgba(172, 212, 0, 0.2);
    z-index: 999999;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#avdb-consent-banner.show {
    transform: translateY(0);
}

.avdb-consent-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

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

.avdb-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.avdb-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

.avdb-consent-text a {
    color: #ACD400;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.avdb-consent-text a:hover {
    color: #c6ea25;
}

.avdb-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.avdb-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.avdb-consent-btn-accept {
    background: #ACD400;
    color: #000000;
}

.avdb-consent-btn-accept:hover {
    background: #c6ea25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(172, 212, 0, 0.3);
}

.avdb-consent-btn-reject {
    background: transparent;
    color: #ffffff;
    border: 2px solid #333333;
}

.avdb-consent-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #666666;
}

.avdb-consent-btn-settings {
    background: transparent;
    color: #ACD400;
    border: 2px solid #ACD400;
}

.avdb-consent-btn-settings:hover {
    background: rgba(172, 212, 0, 0.1);
    border-color: #c6ea25;
    color: #c6ea25;
}

/* ========================================
   CONSENT SETTINGS MODAL
   ======================================== */

#avdb-consent-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#avdb-consent-settings-modal.show {
    display: flex;
}

.avdb-consent-modal-content {
    background: #000000;
    border: 2px solid #ACD400;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 8px 32px rgba(172, 212, 0, 0.2);
}

.avdb-consent-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #cccccc;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.avdb-consent-modal-close:hover {
    background: rgba(172, 212, 0, 0.1);
    color: #ACD400;
}

.avdb-consent-modal-content h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    color: #ffffff;
    font-weight: 600;
}

.avdb-consent-modal-content > p {
    margin: 0 0 24px 0;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}

.avdb-consent-option {
    padding: 20px 0;
    border-bottom: 1px solid #333333;
}

.avdb-consent-option:last-child {
    border-bottom: none;
}

.avdb-consent-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.avdb-consent-option-title {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.avdb-consent-option-description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
}

.avdb-consent-toggle {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

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

.avdb-consent-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333333;
    transition: 0.3s ease;
    border-radius: 28px;
    border: 2px solid #333333;
}

.avdb-consent-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #666666;
    transition: 0.3s ease;
    border-radius: 50%;
}

.avdb-consent-toggle input:checked + .avdb-consent-toggle-slider {
    background-color: #ACD400;
    border-color: #ACD400;
}

.avdb-consent-toggle input:checked + .avdb-consent-toggle-slider:before {
    transform: translateX(26px);
    background-color: #000000;
}

.avdb-consent-toggle input:disabled + .avdb-consent-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ACD400;
    border-color: #ACD400;
}

.avdb-consent-toggle input:disabled + .avdb-consent-toggle-slider:before {
    background-color: #000000;
}

.avdb-consent-modal-buttons {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #333333;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ========================================
   LIGHT VARIANT (Alternative)
   ======================================== */

#avdb-consent-banner[data-variant="light"] {
    background: #ffffff;
    border-top-color: #ACD400;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

#avdb-consent-banner[data-variant="light"] .avdb-consent-text h3 {
    color: #000000;
}

#avdb-consent-banner[data-variant="light"] .avdb-consent-text p {
    color: #333333;
}

#avdb-consent-banner[data-variant="light"] .avdb-consent-text a {
    color: #ACD400;
}

#avdb-consent-banner[data-variant="light"] .avdb-consent-btn-accept {
    background: #ACD400;
    color: #000000;
}

#avdb-consent-banner[data-variant="light"] .avdb-consent-btn-reject {
    background: transparent;
    color: #000000;
    border-color: #cccccc;
}

#avdb-consent-banner[data-variant="light"] .avdb-consent-btn-reject:hover {
    background: #f5f5f5;
    border-color: #999999;
}

#avdb-consent-banner[data-variant="light"] .avdb-consent-btn-settings {
    color: #ACD400;
    border-color: #ACD400;
}

/* Light variant modal */
#avdb-consent-banner[data-variant="light"] ~ #avdb-consent-settings-modal .avdb-consent-modal-content {
    background: #ffffff;
    border-color: #ACD400;
}

#avdb-consent-banner[data-variant="light"] ~ #avdb-consent-settings-modal .avdb-consent-modal-content h2,
#avdb-consent-banner[data-variant="light"] ~ #avdb-consent-settings-modal .avdb-consent-option-title {
    color: #000000;
}

#avdb-consent-banner[data-variant="light"] ~ #avdb-consent-settings-modal .avdb-consent-modal-content > p,
#avdb-consent-banner[data-variant="light"] ~ #avdb-consent-settings-modal .avdb-consent-option-description {
    color: #333333;
}

#avdb-consent-banner[data-variant="light"] ~ #avdb-consent-settings-modal .avdb-consent-option {
    border-bottom-color: #e0e0e0;
}

#avdb-consent-banner[data-variant="light"] ~ #avdb-consent-settings-modal .avdb-consent-modal-close {
    color: #333333;
}

#avdb-consent-banner[data-variant="light"] ~ #avdb-consent-settings-modal .avdb-consent-modal-close:hover {
    background: rgba(172, 212, 0, 0.1);
    color: #ACD400;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 768px) {
    #avdb-consent-banner {
        padding: 20px 16px;
    }

    .avdb-consent-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .avdb-consent-text {
        min-width: 100%;
    }

    .avdb-consent-text h3 {
        font-size: 16px;
    }

    .avdb-consent-text p {
        font-size: 13px;
    }

    .avdb-consent-buttons {
        width: 100%;
        flex-direction: column;
    }

    .avdb-consent-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .avdb-consent-modal-content {
        padding: 24px 20px;
        margin: 0 10px;
    }

    .avdb-consent-modal-content h2 {
        font-size: 22px;
        padding-right: 30px;
    }

    .avdb-consent-option {
        padding: 16px 0;
    }

    .avdb-consent-modal-buttons {
        flex-direction: column;
    }

    .avdb-consent-modal-buttons .avdb-consent-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    #avdb-consent-banner {
        padding: 16px 12px;
    }

    .avdb-consent-text h3 {
        font-size: 15px;
    }

    .avdb-consent-modal-content {
        padding: 20px 16px;
    }
}

