/* Hinden Consent Public CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Animations */
@keyframes hindenSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Banner (News Style - Floating) */
.hinden-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    max-width: 1200px;
    background: var(--hinden-bg, #ffffff);
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    box-shadow: 0 40px 150px rgba(0,0,0,0.5), 0 15px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.1);
    z-index: 999998;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--hinden-text, #1f2937);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    animation: hindenSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hinden-banner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.hinden-banner-icon {
    flex: 0 0 48px;
    height: 48px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: none;
}

.hinden-banner-icon svg {
    width: 24px;
    height: 24px;
}

.hinden-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
}

.hinden-banner-heading {
    font-family: 'Georgia', Times, serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.hinden-banner-text a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hinden-banner-text a:hover {
    text-decoration: underline;
    color: #000;
}

.hinden-banner-actions {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hinden-btn {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hinden-btn-primary {
    background: var(--hinden-primary, #0057ff);
    color: #fff;
    border: 1px solid var(--hinden-primary, #0057ff);
    box-shadow: none;
}

.hinden-btn-primary:hover {
    opacity: 0.9;
    transform: none;
    box-shadow: none;
}

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

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

.hinden-btn-link {
    background: transparent;
    color: var(--hinden-primary, #0057ff);
    border: none;
    box-shadow: none;
    padding: 10px 16px;
}

.hinden-btn-link:hover {
    text-decoration: underline;
    background: rgba(0,87,255,0.05);
}

.hinden-btn-dark {
    background: #111;
    color: #fff;
    border-radius: 8px;
}

.hinden-btn-dark:hover {
    background: #000;
}

.hinden-banner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

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

.hinden-btn-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.hinden-btn-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* 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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.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-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-footer-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 1024px) {
    .hinden-banner {
        width: 96%;
        bottom: 16px;
        padding: 16px 20px;
    }
    .hinden-banner-inner {
        flex-wrap: wrap;
        padding: 0;
    }
    .hinden-banner-text {
        flex: 1 1 100%;
        margin-bottom: 8px;
    }
    .hinden-banner-actions {
        flex: 1 1 auto;
        justify-content: flex-start;
    }
    .hinden-banner-meta {
        border-left: none;
        padding-left: 0;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .hinden-banner {
        padding: 20px;
        border-radius: 4px;
        bottom: 12px;
    }
    .hinden-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 0;
    }
    .hinden-banner-icon {
        display: flex;
        margin-bottom: 10px;
    }
    .hinden-banner-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .hinden-banner-actions .hinden-btn {
        width: 100%;
        text-align: center;
    }
    .hinden-banner-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
    .hinden-btn-close {
        position: absolute;
        top: 12px;
        right: 12px;
    }
    
    .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;
    }
}
