/**
 * GDPR Cookie Management Styles
 * Mobile-First Responsive Design
 * Zenithcorelint - 2025
 */

/* GDPR Cookie Banner */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gdpr-banner-show {
    transform: translateY(0);
}

.gdpr-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gdpr-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.gdpr-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.gdpr-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.gdpr-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gdpr-btn-settings {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gdpr-btn-settings:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gdpr-btn-accept-necessary {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

.gdpr-btn-accept-necessary:hover {
    background: white;
}

.gdpr-btn-accept-all {
    background: #27ae60;
    color: white;
}

.gdpr-btn-accept-all:hover {
    background: #2ecc71;
}

/* Floating Cookie Button */
.cookie-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.cookie-float-btn button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-float-btn button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.cookie-float-btn svg {
    width: 16px;
    height: 16px;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.cookie-modal-show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal-show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f2f3;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category h3 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.cookie-category p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3498db;
}

input:disabled + .slider {
    background-color: #27ae60;
    opacity: 0.7;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

.gdpr-btn-save {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
}

.gdpr-btn-save:hover {
    background: #2980b9;
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    z-index: 10002;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.cookie-notification-show {
    transform: translateX(0);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gdpr-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }
    
    .gdpr-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .gdpr-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal {
        padding: 10px;
    }
    
    .cookie-modal-content {
        max-height: 95vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-switch {
        align-self: flex-end;
    }
    
    .cookie-float-btn {
        bottom: 80px;
        right: 16px;
    }
    
    .cookie-float-btn button {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .cookie-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gdpr-banner-content {
        padding: 16px;
    }
    
    .gdpr-banner-text h3 {
        font-size: 16px;
    }
    
    .gdpr-banner-text p {
        font-size: 13px;
    }
    
    .gdpr-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .cookie-modal-header h2 {
        font-size: 20px;
    }
    
    .cookie-category h3 {
        font-size: 15px;
    }
    
    .cookie-category p {
        font-size: 13px;
    }
}

/* AdSense Compatibility */
.adsbygoogle {
    display: block !important;
}

/* Hide elements during cookie loading */
.cookie-loading .adsbygoogle {
    visibility: hidden;
}

/* Animation keyframes */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gdpr-banner {
        border-top: 2px solid #fff;
    }
    
    .gdpr-btn {
        border: 2px solid currentColor;
    }
    
    .cookie-switch .slider {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gdpr-banner,
    .cookie-modal,
    .cookie-modal-content,
    .cookie-notification,
    .gdpr-btn,
    .cookie-float-btn button {
        transition: none;
    }
} 