/* GDPR Cookie Consent Styles - Professional Implementation */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--primary, #f7b731);
    opacity: 0;
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ecf0f1;
}

.cookie-consent-text a {
    color: var(--primary, #f7b731);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #ffd571;
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    outline: none;
}

.cookie-btn:focus {
    outline: 2px solid var(--primary, #f7b731);
    outline-offset: 2px;
}

.cookie-btn-accept {
    background: var(--primary, #f7b731);
    color: #2c3e50;
}

.cookie-btn-accept:hover {
    background: #ffd571;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 183, 49, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: #ecf0f1;
    border: 2px solid #7f8c8d;
}

.cookie-btn-decline:hover {
    background: #7f8c8d;
    color: #ffffff;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--primary, #f7b731);
    border: 2px solid var(--primary, #f7b731);
}

.cookie-btn-settings:hover {
    background: var(--primary, #f7b731);
    color: #2c3e50;
}

/* Cookie Settings Modal */
.cookie-settings-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;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-modal:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.cookie-settings-body {
    padding: 1.5rem 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary, #f7b731);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle input:focus + .cookie-toggle-slider {
    box-shadow: 0 0 0 2px var(--primary, #f7b731);
}

.cookie-category-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-footer {
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.cookie-settings-footer .cookie-btn {
    min-width: 120px;
    justify-content: center;
}

/* Privacy Center Button */
.privacy-center-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-center-btn:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.privacy-center-btn:focus {
    outline: 2px solid var(--primary, #f7b731);
    outline-offset: 2px;
}

/* GDPR Messages */
.gdpr-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    color: #2c3e50;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary, #f7b731);
    max-width: 320px;
}

.gdpr-message.show {
    opacity: 1;
    transform: translateX(0);
}

.gdpr-message-success {
    border-left-color: #2ecc71;
    background: linear-gradient(135deg, #d5f4e6 0%, #e8f8f5 100%);
    color: #27ae60;
}

.gdpr-message-error {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fadbd8 0%, #fdf2f2 100%);
    color: #c0392b;
}

.gdpr-message-info {
    border-left-color: #3498db;
    background: linear-gradient(135deg, #d6eaf8 0%, #ebf5fb 100%);
    color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .cookie-settings-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .privacy-center-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .gdpr-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .privacy-center-btn {
        bottom: 16px;
        right: 16px;
    }
}

/* Animation keyframes */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border: 2px solid #ffffff;
    }
    
    .cookie-btn {
        border-width: 2px;
    }
    
    .privacy-center-btn {
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-btn,
    .cookie-toggle-slider,
    .cookie-toggle-slider:before,
    .privacy-center-btn,
    .gdpr-message,
    .cookie-settings-modal,
    .cookie-settings-content {
        transition: none;
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-settings-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .cookie-settings-header {
        border-bottom-color: #34495e;
    }
    
    .cookie-settings-footer {
        border-top-color: #34495e;
    }
    
    .cookie-category {
        background: #34495e;
        border-color: #4a6478;
    }
    
    .cookie-category h3 {
        color: #ecf0f1;
    }
    
    .cookie-category-description {
        color: #bdc3c7;
    }
    
    .close-modal {
        color: #bdc3c7;
    }
    
    .close-modal:hover {
        background: #34495e;
        color: #ecf0f1;
    }
} 