/* Hinden Consent Public CSS */



/* Animations */
@keyframes hindenSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Banner (NYT Style) */
.hinden-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 999998;
    font-family: inherit;
    color: var(--hinden-text, #111);
    pointer-events: none;
}

.hinden-banner::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.05);
    pointer-events: none;
    z-index: -1;
    animation: hindenFadeIn 0.6s ease forwards;
}

.hinden-banner-bg {
    background: var(--hinden-bg, #ffffff);
    width: 100%;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    pointer-events: auto;
    animation: hindenSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hinden-banner-inner {
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 6%;
    flex-wrap: nowrap;
}

.hinden-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hinden-banner-heading {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.hinden-banner-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.hinden-banner-desc a {
    color: #111;
    text-decoration: underline;
    font-weight: 600;
}

.hinden-banner-meta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hinden-language-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.hinden-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 280px;
}

.hinden-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    width: 100%;
}

.hinden-btn-primary {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.hinden-btn-primary:hover {
    background: #222;
}

.hinden-btn-secondary {
    background: #fff;
    border: 1px solid #000;
    color: #000;
}

.hinden-btn-secondary:hover {
    background: #f4f4f4;
}

/* Modal (NYT Style) */
.hinden-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.hinden-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.hinden-modal-content {
    position: relative;
    z-index: 2;
    background: var(--hinden-bg, #ffffff);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: var(--hinden-text, #333333);
}

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

.hinden-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.hinden-btn-close {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    width: auto;
    min-width: unset;
}

.hinden-btn-close:hover {
    background: #e5e7eb;
    color: #111;
}

.hinden-btn-close svg {
    width: 24px;
    height: 24px;
}

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

.hinden-modal-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 24px;
    color: #4b5563;
}

.hinden-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.hinden-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.hinden-tab.active {
    color: var(--hinden-text, #333333);
    border-bottom-color: var(--hinden-text, #333333);
}

.hinden-tab-content {
    display: none;
}

.hinden-tab-content.active {
    display: block;
}

.hinden-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.hinden-toggle-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 500;
}

.hinden-toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hinden-badge {
    background: #4b5563;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Switch Toggle CSS */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--hinden-primary, #0057ff);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--hinden-primary, #0057ff);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.hinden-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

.hinden-modal-footer .hinden-btn {
    width: auto;
}

.hinden-footer-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 1024px) {
    .hinden-banner-inner {
        width: 100%;
        margin-bottom: 0;
        padding: 24px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hinden-banner-inner {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0;
        padding: 20px;
        border-radius: 0;
    }
    .hinden-banner-actions {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .hinden-modal-footer {
        flex-direction: column;
        gap: 16px;
    }
    .hinden-modal-footer .hinden-btn, .hinden-footer-actions {
        width: 100%;
    }
    .hinden-footer-actions .hinden-btn {
        flex: 1;
    }
}
