/**
 * GDPR Cookie Consent Styles
 * Themed to match NWC site design
 */

/* ========================================
   BANNER STYLES
   ======================================== */

.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #005230;
    color: #ffffff;
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 82, 48, 0.3);
    z-index: 9999999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gdpr-banner-visible {
    opacity: 1;
    transform: translateY(0);
}

.gdpr-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.gdpr-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.gdpr-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.gdpr-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.gdpr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gdpr-btn-primary {
    background: #e17113;
    color: #ffffff;
}

.gdpr-btn-primary:hover {
    background: #c55f0f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 113, 19, 0.4);
}

.gdpr-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.gdpr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   MODAL STYLES
   ======================================== */

.gdpr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 82, 48, 0.85);
    z-index: 10000000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gdpr-modal-visible {
    opacity: 1;
}

.gdpr-modal-content {
    background: #fffdf5;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: gdprSlideUp 0.3s ease;
}

@keyframes gdprSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #005230;
    background: #fff;
}

.gdpr-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #005230;
    font-weight: 600;
}

.gdpr-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #858585;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.gdpr-close:hover {
    background: #f5f5f5;
    color: #005230;
}

.gdpr-modal-body {
    padding: 24px;
    background: #fffdf5;
}

.gdpr-modal-description {
    font-size: 14px;
    color: #666666;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* ========================================
   COOKIE CATEGORY STYLES
   ======================================== */

.gdpr-cookie-category {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.gdpr-cookie-category:hover {
    border-color: #005230;
}

.gdpr-category-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.gdpr-category-info {
    flex: 1;
}

.gdpr-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gdpr-category-info p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* Cookie Details Expandable */
.gdpr-cookie-details {
    margin-top: 12px;
}

.gdpr-cookie-details summary {
    cursor: pointer;
    font-size: 13px;
    color: #e17113;
    font-weight: 600;
    user-select: none;
}

.gdpr-cookie-details summary:hover {
    color: #c55f0f;
}

.gdpr-cookie-details[open] summary {
    margin-bottom: 8px;
}

.gdpr-cookie-details ul {
    margin: 8px 0 0 0;
    padding: 10px 10px 10px 28px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #005230;
    list-style: disc;
}

.gdpr-cookie-details li {
    font-size: 12px;
    color: #666666;
    margin-bottom: 6px;
    line-height: 1.4;
}

.gdpr-cookie-details li:last-child {
    margin-bottom: 0;
}

.gdpr-cookie-details li strong {
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    background: rgba(0, 82, 48, 0.08);
    padding: 1px 4px;
    border-radius: 3px;
}

.gdpr-always-active {
    font-size: 11px;
    font-weight: 600;
    color: #005230;
    background: rgba(0, 82, 48, 0.12);
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   TOGGLE SWITCH
   ======================================== */

.gdpr-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.gdpr-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gdpr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.gdpr-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .gdpr-slider {
    background-color: #e17113;
}

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

input:disabled + .gdpr-slider {
    cursor: not-allowed;
    background-color: #005230;
}

/* ========================================
   MODAL FOOTER
   ======================================== */

.gdpr-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

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

@media (max-width: 768px) {
    .gdpr-banner {
        padding: 20px;
    }
    
    .gdpr-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .gdpr-banner-text {
        text-align: center;
    }
    
    .gdpr-banner-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gdpr-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .gdpr-modal {
        padding: 10px;
    }
    
    .gdpr-modal-content {
        max-height: 100vh;
        border-radius: 8px;
    }
    
    .gdpr-modal-header {
        padding: 16px 20px;
    }
    
    .gdpr-modal-header h2 {
        font-size: 20px;
    }
    
    .gdpr-category-header {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .gdpr-switch {
        align-self: flex-start;
    }
    
    .gdpr-category-info h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .gdpr-banner {
        padding: 16px;
    }
    
    .gdpr-banner-text h3 {
        font-size: 18px;
    }
    
    .gdpr-banner-text p {
        font-size: 13px;
    }
    
    .gdpr-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .gdpr-modal-header,
    .gdpr-modal-body,
    .gdpr-modal-footer {
        padding: 16px;
    }
    
    .gdpr-cookie-category {
        padding: 16px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .gdpr-banner,
    .gdpr-modal {
        display: none !important;
    }
}
