/* ================================
   Cookie Consent Banner
   ================================ */
#cookie-consent-banner {
  position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    color: var(--color-white);
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.cookie-banner-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cookie-banner-text a {
  color: var(--color-blue-light);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--color-white);
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-family);
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, var(--color-blue-accent), var(--color-blue-light));
    color: var(--color-white);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(77, 163, 255, 0.4);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

.cookie-btn-settings {
 background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    text-decoration: underline;
    padding: 0.75rem 1rem;
}

.cookie-btn-settings:hover {
    color: var(--color-white);
}

/* Cookie Settings Modal */
#cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 41, 0.95);
 backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
 transition: all var(--transition-speed) ease;
    padding: 20px;
}

#cookie-settings.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background: var(--color-white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
 max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-settings-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-settings-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    margin: 0;
}

.cookie-settings-body {
    padding: 2rem;
}

.cookie-category {
  margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy-dark);
margin: 0;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-switch-slider:before {
  position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-switch-slider {
    background-color: var(--color-blue-accent);
}

.cookie-switch input:checked + .cookie-switch-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-switch-slider {
    background-color: var(--color-blue-accent);
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray);
    margin: 0;
}

.cookie-settings-footer {
padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
display: flex;
  gap: 1rem;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
  text-align: center;
    }

    .cookie-settings-content {
        border-radius: 10px;
    }

    .cookie-settings-header,
  .cookie-settings-body {
        padding: 1.5rem;
    }

    .cookie-settings-footer {
        flex-direction: column-reverse;
    }

 .cookie-settings-footer .cookie-btn {
     width: 100%;
    }
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    cursor: pointer;
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.cookie-settings-link:hover {
    color: var(--color-blue-light);
    text-decoration: underline;
}
