/**
 * DCM Cookie Consent Styles
 * 
 * Styles for the GDPR cookie consent banner and modal
 */

/* Cookie Banner */
.dcm-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #fff;
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.dcm-cookie-banner-bottom {
    bottom: 0;
}

.dcm-cookie-banner-top {
    top: 0;
    border-top: none;
    border-bottom: 1px solid #e1e1e1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dcm-cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dcm-cookie-banner-text {
    flex: 1;
}

.dcm-cookie-banner-text p {
    margin: 0 0 10px 0;
    color: #333;
}

.dcm-cookie-banner-text p:last-child {
    margin-bottom: 0;
}

.dcm-cookie-privacy-link {
    font-size: 13px;
}

.dcm-cookie-privacy-link a {
    color: #0073aa;
    text-decoration: none;
}

.dcm-cookie-privacy-link a:hover {
    text-decoration: underline;
}

.dcm-cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Cookie Buttons */
.dcm-cookie-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.dcm-cookie-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.dcm-cookie-btn-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.dcm-cookie-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.dcm-cookie-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
    border-color: #c3c4c7;
}

.dcm-cookie-btn-secondary:hover {
    background: #dcdcde;
    border-color: #8c8f94;
}

.dcm-cookie-btn-decline {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

.dcm-cookie-btn-decline:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

/* Banner Styles */
.dcm-cookie-banner-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.dcm-cookie-banner-modern .dcm-cookie-banner-text p {
    color: #fff;
}

.dcm-cookie-banner-modern .dcm-cookie-privacy-link a {
    color: #fff;
    opacity: 0.9;
}

.dcm-cookie-banner-modern .dcm-cookie-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.dcm-cookie-banner-modern .dcm-cookie-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dcm-cookie-banner-modern .dcm-cookie-btn-primary {
    background: #fff;
    color: #667eea;
    border-color: #fff;
}

.dcm-cookie-banner-modern .dcm-cookie-btn-primary:hover {
    background: #f5f5f5;
}

.dcm-cookie-banner-minimal {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.dcm-cookie-banner-rounded {
    border-radius: 12px;
    margin: 20px;
    max-width: calc(100% - 40px);
}

.dcm-cookie-banner-rounded .dcm-cookie-banner-content {
    border-radius: 12px;
}

/* Cookie Modal */
.dcm-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dcm-cookie-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dcm-cookie-modal-header {
    padding: 20px 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 20px;
}

.dcm-cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.dcm-cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dcm-cookie-modal-close:hover {
    background: #f0f0f1;
    color: #333;
}

.dcm-cookie-modal-body {
    padding: 0 20px;
}

.dcm-cookie-modal-body p {
    margin: 0 0 20px 0;
    color: #646970;
    line-height: 1.6;
}

.dcm-cookie-categories {
    margin-bottom: 20px;
}

.dcm-cookie-category {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px;
    background: #fafafa;
}

.dcm-cookie-category:last-child {
    margin-bottom: 0;
}

.dcm-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dcm-cookie-category-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.dcm-cookie-category p {
    margin: 0;
    font-size: 14px;
    color: #646970;
    line-height: 1.5;
}

/* Cookie Toggle */
.dcm-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0;
}

.dcm-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dcm-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.dcm-cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.dcm-cookie-toggle input:checked + .dcm-cookie-toggle-slider {
    background-color: #00a32a;
}

.dcm-cookie-toggle input:checked + .dcm-cookie-toggle-slider:before {
    transform: translateX(26px);
}

.dcm-cookie-toggle input:disabled + .dcm-cookie-toggle-slider {
    background-color: #00a32a;
    cursor: not-allowed;
}

.dcm-cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #e1e1e1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dcm-cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .dcm-cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .dcm-cookie-btn {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .dcm-cookie-modal {
        padding: 10px;
    }
    
    .dcm-cookie-modal-content {
        max-height: 90vh;
    }
    
    .dcm-cookie-modal-header {
        padding: 15px 15px 0 15px;
    }
    
    .dcm-cookie-modal-body {
        padding: 0 15px;
    }
    
    .dcm-cookie-modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .dcm-cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .dcm-cookie-banner {
        margin: 0;
        border-radius: 0;
    }
    
    .dcm-cookie-banner-content {
        padding: 15px;
    }
    
    .dcm-cookie-banner-actions {
        flex-direction: column;
    }
    
    .dcm-cookie-btn {
        width: 100%;
    }
}

/* Animation */
.dcm-cookie-banner {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.dcm-cookie-banner-top {
    transform: translateY(-100%);
}

.dcm-cookie-banner.show {
    transform: translateY(0);
}

.dcm-cookie-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dcm-cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.dcm-cookie-modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dcm-cookie-modal.show .dcm-cookie-modal-content {
    transform: scale(1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dcm-cookie-banner {
        background: #1e1e1e;
        border-color: #3c434a;
        color: #f0f0f1;
    }
    
    .dcm-cookie-banner-text p {
        color: #f0f0f1;
    }
    
    .dcm-cookie-banner-minimal {
        background: #2c3338;
        border-color: #3c434a;
    }
    
    .dcm-cookie-modal-content {
        background: #1e1e1e;
        color: #f0f0f1;
    }
    
    .dcm-cookie-modal-header {
        border-color: #3c434a;
    }
    
    .dcm-cookie-modal-header h3 {
        color: #f0f0f1;
    }
    
    .dcm-cookie-modal-close {
        color: #f0f0f1;
    }
    
    .dcm-cookie-modal-close:hover {
        background: #3c434a;
    }
    
    .dcm-cookie-modal-body p {
        color: #c3c4c7;
    }
    
    .dcm-cookie-category {
        background: #2c3338;
        border-color: #3c434a;
    }
    
    .dcm-cookie-category-header h4 {
        color: #f0f0f1;
    }
    
    .dcm-cookie-category p {
        color: #c3c4c7;
    }
    
    .dcm-cookie-modal-footer {
        border-color: #3c434a;
    }
}
