/**
 * Cookie Consent Styles - GDPR Compliant
 * Sovi Website
 */

/* ========== Cookie Banner ========== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #3B82F6;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

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

.cookie-consent-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-title i {
    color: #F59E0B;
}

.cookie-consent-description {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.cookie-consent-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent-links a {
    font-size: 0.875rem;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-consent-links a:hover {
    color: #2563EB;
    text-decoration: underline;
}

.cookie-consent-links .separator {
    color: #D1D5DB;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========== Cookie Buttons ========== */
.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cookie-btn:focus {
    outline: 3px solid rgba(59, 130, 246, 0.3);
    outline-offset: 2px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.cookie-btn-reject {
    background: white;
    color: #4B5563;
    border-color: #D1D5DB;
}

.cookie-btn-reject:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.cookie-btn-settings {
    background: white;
    color: #3B82F6;
    border-color: #3B82F6;
}

.cookie-btn-settings:hover {
    background: #EFF6FF;
}

.cookie-btn-primary {
    background: #3B82F6;
    color: white;
}

.cookie-btn-primary:hover {
    background: #2563EB;
}

/* ========== Cookie Modal ========== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

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

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

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s;
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-modal-header i {
    color: #F59E0B;
}

.cookie-modal-close {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s;
}

.cookie-modal-close:hover {
    background: #F3F4F6;
    color: #111827;
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-intro {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* ========== Cookie Categories ========== */
.cookie-category {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

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

.cookie-category-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-category-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-info i {
    color: #3B82F6;
}

.cookie-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-badge-required {
    background: #DBEAFE;
    color: #1E40AF;
}

.cookie-badge-optional {
    background: #E0E7FF;
    color: #4338CA;
}

.cookie-category-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* ========== Toggle Switch ========== */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

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

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #3B82F6;
}

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

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== Modal Footer ========== */
.cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 20px 16px;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 20px;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal-header {
        padding: 20px 16px;
    }

    .cookie-modal-body {
        padding: 20px 16px;
    }

    .cookie-modal-footer {
        padding: 16px;
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }

    .cookie-category {
        padding: 16px;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-category-info {
        width: 100%;
    }
}

/* ========== Animations ========== */
@keyframes slideIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== Print Styles ========== */
@media print {
    .cookie-consent-banner,
    .cookie-modal {
        display: none !important;
    }
}

