/**
 * Google Consent v2 - GDPR Compliant CSS
 * Modern, accessible styling for cookie consent banner
 */

/* Banner Container */
.google-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.google-consent-banner.google-consent-bottom {
    bottom: 0;
}

.google-consent-banner.google-consent-top {
    top: 0;
}

.google-consent-banner.google-consent-light {
    background: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

.google-consent-banner.google-consent-dark {
    background: #2c3e50;
    color: #ffffff;
    border-top: 1px solid #34495e;
}

.google-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.google-consent-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.google-consent-text {
    font-weight: 400;
    margin-bottom: 10px;
}

.google-consent-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.google-consent-link {
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.google-consent-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.google-consent-dark .google-consent-link {
    color: #74b9ff;
}

.google-consent-dark .google-consent-link:hover {
    color: #0984e3;
}

.google-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.google-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    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;
}

.google-consent-accept {
    background: #007cba;
    color: #ffffff;
}

.google-consent-accept:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.google-consent-reject {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.google-consent-reject:hover {
    background: #e9ecef;
    color: #495057;
}

.google-consent-settings {
    background: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.google-consent-settings:hover {
    background: #007cba;
    color: #ffffff;
}

.google-consent-dark .google-consent-reject {
    background: #34495e;
    color: #bdc3c7;
    border: 1px solid #2c3e50;
}

.google-consent-dark .google-consent-reject:hover {
    background: #2c3e50;
    color: #ecf0f1;
}

.google-consent-dark .google-consent-settings {
    color: #74b9ff;
    border: 1px solid #74b9ff;
}

.google-consent-dark .google-consent-settings:hover {
    background: #74b9ff;
    color: #2c3e50;
}

/* Settings Modal */
.google-consent-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.google-consent-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.google-consent-settings-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.google-consent-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.google-consent-settings-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.google-consent-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.google-consent-settings-close:hover {
    background: #f8f9fa;
    color: #333333;
}

.google-consent-settings-body {
    padding: 25px;
}

.google-consent-settings-body > p {
    margin: 0 0 25px 0;
    color: #666666;
    line-height: 1.6;
}

.google-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.google-consent-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.google-consent-category:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 122, 186, 0.1);
}

.google-consent-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.google-consent-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

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

/* Toggle Switch */
.google-consent-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

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

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

.google-consent-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.google-consent-switch input:checked + .google-consent-slider {
    background-color: #007cba;
}

.google-consent-switch input:checked + .google-consent-slider:before {
    transform: translateX(26px);
}

.google-consent-settings-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.google-consent-save {
    background: #007cba;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
}

.google-consent-save:hover {
    background: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .google-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .google-consent-actions {
        justify-content: center;
    }
    
    .google-consent-btn {
        flex: 1;
        min-width: auto;
    }
    
    .google-consent-settings-content {
        margin: 10px;
        max-width: none;
    }
    
    .google-consent-category-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .google-consent-switch {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .google-consent-container {
        padding: 15px;
    }
    
    .google-consent-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .google-consent-btn {
        width: 100%;
    }
    
    .google-consent-settings-body {
        padding: 20px;
    }
    
    .google-consent-settings-header {
        padding: 15px 20px;
    }
    
    .google-consent-settings-footer {
        padding: 15px 20px;
    }
}

/* Accessibility */
.google-consent-btn:focus,
.google-consent-settings-close:focus,
.google-consent-switch input:focus + .google-consent-slider {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .google-consent-banner {
        border-width: 2px;
    }
    
    .google-consent-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .google-consent-banner,
    .google-consent-btn,
    .google-consent-slider,
    .google-consent-settings-content {
        transition: none;
    }
} 
