/**
 * Cookie Consent Modal Styles
 * Modern, GDPR-compliant cookie consent design
 */

.cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner.show .cookie-consent-modal {
    transform: scale(1);
    opacity: 1;
}

.cookie-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-consent-modal {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.cookie-close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.cookie-consent-body {
    padding: 30px;
}

.cookie-consent-body > p {
    margin: 0 0 25px;
    color: #4b5563;
    line-height: 1.6;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.cookie-option {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cookie-option:hover {
    background: #f3f4f6;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #1f2937;
}

.cookie-required,
.cookie-optional {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cookie-required {
    background: #dbeafe;
    color: #1e40af;
}

.cookie-optional {
    background: #f3f4f6;
    color: #6b7280;
}

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

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #667eea;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Links */
.cookie-links {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 20px;
}

.cookie-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer Buttons */
.cookie-consent-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cookie {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-reject {
    background: white;
    color: #6b7280;
    border-color: #d1d5db;
}

.btn-reject:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-customize {
    background: white;
    color: #667eea;
    border-color: #667eea;
}

.btn-customize:hover {
    background: #eff6ff;
}

.btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Confirmation Notification */
.cookie-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.cookie-notification-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-modal {
        max-width: 95%;
        max-height: 95vh;
    }

    .cookie-consent-header,
    .cookie-consent-body,
    .cookie-consent-footer {
        padding: 20px;
    }

    .cookie-consent-header h2 {
        font-size: 1.25rem;
    }

    .cookie-consent-footer {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
    }

    .cookie-option {
        padding: 15px;
    }

    .cookie-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

/* Cookie Settings Button (optional - add to footer) */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border: 2px solid #d1d5db;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-settings-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
