/**
 * GDPR Cookie Consent Banner Styles
 * Responsive design for cookie consent UI
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Inter', system-ui, sans-serif;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-consent-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-message p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.4);
}

.cookie-btn-settings {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.4);
}

.cookie-btn-secondary {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Settings Panel */
.cookie-consent-settings {
    max-height: 70vh;
    overflow-y: auto;
}

.cookie-consent-settings h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.75rem 0;
}

.cookie-settings-intro {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.25);
}

.cookie-category-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-category-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.25rem 0;
}

.cookie-category-info p {
    font-size: 0.813rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

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

.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: rgba(148, 163, 184, 0.3);
    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%;
}

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

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

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(148, 163, 184, 0.2);
}

.cookie-settings-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* Scrollbar Styling */
.cookie-consent-settings::-webkit-scrollbar {
    width: 8px;
}

.cookie-consent-settings::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
}

.cookie-consent-settings::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.cookie-consent-settings::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

/* Responsive Design */
@media (min-width: 768px) {
    .cookie-consent-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-consent-message {
        flex: 1;
        max-width: 60%;
    }

    .cookie-consent-actions {
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .cookie-consent-content {
        padding: 1.25rem 1.5rem;
    }

    .cookie-consent-message h3 {
        font-size: 1.125rem;
    }

    .cookie-consent-message p {
        font-size: 0.813rem;
    }

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

    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        text-align: center;
    }

    .cookie-consent-settings {
        max-height: 60vh;
    }

    .cookie-consent-settings h3 {
        font-size: 1.25rem;
    }

    .cookie-category {
        padding: 1rem;
    }

    .cookie-category-header {
        gap: 0.75rem;
    }

    .cookie-settings-actions {
        flex-direction: column;
    }

    .cookie-settings-actions .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-content {
        padding: 1rem 1.25rem;
    }

    .cookie-consent-message h3 {
        font-size: 1rem;
    }

    .cookie-consent-message p {
        font-size: 0.75rem;
    }

    .cookie-btn {
        padding: 0.75rem 1rem;
        font-size: 0.813rem;
    }

    .cookie-switch {
        width: 48px;
        height: 26px;
    }

    .cookie-slider:before {
        height: 18px;
        width: 18px;
    }

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

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

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}
