/* ===================================
   GATED ISSUU MODULE STYLING v2.1
   De Vastgoedbelegger Branding
   Met Content Tracking (Like/Read)
   + Email Warning Notice
   PRODUCTION READY
=================================== */

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

@font-face {
  font-family: 'Butler';
  src: url('https://use.typekit.net/af/1a1c4b/00000000000000007735a9aa/30/l?subset_id=2&fvd=n7') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Butler';
  src: url('https://use.typekit.net/af/9b05f3/00000000000000007735a9b0/30/l?subset_id=2&fvd=n5') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Butler';
  src: url('https://use.typekit.net/af/4e7e72/00000000000000007735a9ac/30/l?subset_id=2&fvd=n4') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS VARIABELEN ===== */
:root {
  --gi-primary-dark: #192031;
  --gi-primary-medium: #284b66;
  --gi-accent-gold: #cdb9a3;
  --gi-light-neutral: #e5dfd8;
  --gi-white: #ffffff;
  --gi-offwhite: #f9f7f5;
  --gi-gold-hover: #b8a68d;
  --gi-shadow: rgba(25, 32, 49, 0.08);
  --gi-shadow-lg: rgba(25, 32, 49, 0.12);
  --gi-error: #d32f2f;
  --gi-error-bg: #ffebee;
  --gi-success: #2e7d32;
  --gi-success-bg: #e8f5e9;
  --gi-danger: #ef4444;
}

/* ===== BASE WRAPPER ===== */
.gated-issuu-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== PREVIEW MODE ===== */
.issuu-preview-mode {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--gi-shadow-lg);
  background: var(--gi-white);
}

.issuu-preview-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  max-height: 70vh;
  overflow: hidden;
}

.issuu-iframe-wrapper-preview {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 60%;
  background: linear-gradient(135deg, #f5f3f0 0%, #ebe7e2 100%);
}

.issuu-iframe-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: blur(0px);
  transition: filter 0.3s ease;
}

/* ===== UNLOCK OVERLAY ===== */
.issuu-unlock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 10;
  overflow: hidden;
}

.unlock-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.7) 40%,
    rgba(255, 255, 255, 0.95) 60%,
    rgba(255, 255, 255, 1) 75%
  );
  pointer-events: none;
}

.unlock-content {
  position: relative;
  z-index: 2;
  background: var(--gi-white);
  padding: 2rem 2rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--gi-light-neutral);
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.unlock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gi-primary-dark) 0%, var(--gi-primary-medium) 100%);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(25, 32, 49, 0.2);
  flex-shrink: 0;
}

.unlock-icon svg {
  color: var(--gi-accent-gold);
  width: 32px;
  height: 32px;
}

.unlock-title {
  font-family: 'Butler', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gi-primary-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.unlock-description {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1rem;
  color: var(--gi-primary-medium);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== UNLOCK BUTTONS ===== */
.unlock-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.vgbel-btn {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 140px;
  white-space: nowrap;
}

.vgbel-btn-primary {
  color: var(--gi-primary-dark);
  background: var(--gi-accent-gold);
  box-shadow: 0 2px 8px rgba(205, 185, 163, 0.3);
}

.vgbel-btn-primary:hover {
  background: var(--gi-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(205, 185, 163, 0.4);
}

.vgbel-btn-secondary {
  color: var(--gi-primary-dark);
  background: var(--gi-white);
  border: 2px solid var(--gi-primary-dark);
}

.vgbel-btn-secondary:hover {
  background: var(--gi-primary-dark);
  color: var(--gi-white);
  transform: translateY(-2px);
}

.vgbel-btn-gold {
  color: var(--gi-primary-dark);
  background: var(--gi-accent-gold);
  width: 100%;
  padding: 0.875rem 1.5rem;
}

.vgbel-btn-gold:hover {
  background: var(--gi-gold-hover);
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== DIVIDER ===== */
.unlock-divider {
  position: relative;
  text-align: center;
  margin: 1.25rem 0;
}

.unlock-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--gi-light-neutral);
}

.unlock-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: var(--gi-white);
  color: var(--gi-primary-medium);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ===== EMAIL SECTION ===== */
.unlock-email-section {
  max-width: 400px;
  margin: 0 auto;
  background: var(--gi-offwhite);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gi-light-neutral);
}

.email-option-text {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gi-primary-dark);
  margin: 0 0 0.875rem 0;
  text-align: center;
}

.email-input-group {
  margin-bottom: 0.5rem;
}

.email-input-group input {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1rem;
  color: var(--gi-primary-dark);
  background: var(--gi-white);
  border: 2px solid var(--gi-light-neutral);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.email-input-group input:focus {
  outline: none;
  border-color: var(--gi-accent-gold);
  box-shadow: 0 0 0 3px rgba(205, 185, 163, 0.15);
}

.email-input-group input::placeholder {
  color: #a0a0a0;
}

/* ===== EMAIL WARNING NOTICE ===== */
.email-warning-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(205, 185, 163, 0.15);
  border: 1px solid var(--gi-accent-gold);
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.75rem;
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(205, 185, 163, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(205, 185, 163, 0.15);
  }
}

.email-warning-icon {
  flex-shrink: 0;
  color: var(--gi-accent-gold);
  width: 16px;
  height: 16px;
}

.email-warning-notice span {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.6875rem;
  color: var(--gi-primary-dark);
  line-height: 1.35;
  text-align: left;
}

.email-warning-notice strong {
  font-weight: 600;
  color: var(--gi-primary-dark);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .email-warning-notice {
    animation: none;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .email-warning-notice {
    border: 2px solid CanvasText;
  }
}

/* ===== GDPR CONSENT ===== */
.gdpr-consent-section {
  margin: 0.75rem 0;
  text-align: left;
}

.gdpr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--gi-primary-dark);
}

.gdpr-checkbox:last-child {
  margin-bottom: 0;
}

.gdpr-checkbox input[type="checkbox"] {
  margin-top: 0.125rem;
  min-width: 16px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--gi-accent-gold);
  flex-shrink: 0;
}

.gdpr-checkbox span {
  flex: 1;
}

.gdpr-checkbox a {
  color: var(--gi-accent-gold);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.gdpr-checkbox a:hover {
  color: var(--gi-gold-hover);
}

/* ===== ERROR MESSAGE ===== */
.error-message {
  font-family: 'Libre Franklin', sans-serif;
  color: var(--gi-error);
  background: var(--gi-error-bg);
  font-size: 0.875rem;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--gi-error);
  text-align: left;
}

/* ===== PUBLICATION INFO (Preview) ===== */
.publication-info-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--gi-primary-dark) 0%, var(--gi-primary-medium) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pub-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(205, 185, 163, 0.15);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.pub-icon svg {
  color: var(--gi-accent-gold);
}

.pub-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-family: 'Butler', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gi-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gi-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pub-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gi-accent-gold);
  border-radius: 50%;
}

/* ===== FULL MODE (Unlocked) ===== */
.issuu-full-mode {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--gi-shadow-lg);
  background: var(--gi-white);
}

.issuu-iframe-wrapper-full {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: max(60%, 326px);
  background: #f5f3f0;
}

.issuu-iframe-full {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.publication-info-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--gi-primary-dark) 0%, var(--gi-primary-medium) 100%);
  flex-wrap: wrap;
}

.pub-info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.pub-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gi-success);
  background: var(--gi-success-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.pub-status svg {
  width: 14px;
  height: 14px;
}

/* ===== LIKE BUTTON ===== */
.pub-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.issuu-like-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  color: var(--gi-white);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.issuu-like-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.issuu-like-btn .heart-icon {
  width: 20px;
  height: 20px;
  color: var(--gi-white);
  fill: none;
  transition: all 0.3s ease;
}

.issuu-like-btn.active {
  background: var(--gi-danger);
  border-color: var(--gi-danger);
}

.issuu-like-btn.active .heart-icon {
  color: var(--gi-white);
  fill: var(--gi-white);
  animation: heartBeat 0.3s ease;
}

.issuu-like-btn.active .like-text {
  color: var(--gi-white);
}

.issuu-like-btn.processing {
  pointer-events: none;
  opacity: 0.6;
}

.issuu-like-btn.processing .heart-icon {
  animation: likeProcessing 0.6s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes likeProcessing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.like-text {
  white-space: nowrap;
}

/* ===== TOAST NOTIFICATIONS ===== */
#issuu-toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.issuu-toast {
  background: var(--gi-primary-dark);
  color: var(--gi-white);
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.issuu-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.issuu-toast-success {
  background: var(--gi-success);
}

.issuu-toast-error {
  background: var(--gi-error);
}

.issuu-toast-info {
  background: var(--gi-primary-medium);
}

@media (min-width: 768px) {
  #issuu-toast-container {
    bottom: 40px;
  }
}

/* ===== EMPTY STATE ===== */
.issuu-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 3rem 2rem;
  background: var(--gi-white);
  border: 2px dashed var(--gi-light-neutral);
  border-radius: 1rem;
  text-align: center;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gi-offwhite);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.empty-icon svg {
  color: var(--gi-primary-medium);
  opacity: 0.6;
}

.issuu-empty-state h3 {
  font-family: 'Butler', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gi-primary-dark);
  margin: 0 0 0.75rem 0;
}

.issuu-empty-state p {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1rem;
  color: var(--gi-primary-medium);
  margin: 0;
  max-width: 400px;
}

/* ===== MODALS ===== */
.vgbel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gi-fadeIn 0.2s ease;
}

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

.vgbel-modal.hidden {
  display: none;
}

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

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 80vh;
  max-height: 700px;
  background: var(--gi-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  z-index: 2;
  animation: gi-slideUp 0.3s ease;
}

@keyframes gi-slideUp {
  from { 
    transform: translateY(30px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: var(--gi-primary-dark);
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gi-white);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  background: var(--gi-accent-gold);
  color: var(--gi-primary-dark);
  transform: rotate(90deg);
}

/* ===== UTILITY ===== */
.hidden {
  display: none !important;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 900px) {
  .unlock-content {
    padding: 1.5rem 1.5rem 2rem;
  }

  .unlock-title {
    font-size: 1.375rem;
  }

  .unlock-description {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }
  
  /* Email warning responsive - tablet */
  .email-warning-notice {
    padding: 0.5rem 0.625rem;
    gap: 0.4rem;
  }
  
  .email-warning-notice span {
    font-size: 0.625rem;
  }
  
  .email-warning-icon {
    width: 14px;
    height: 14px;
  }
}

/* ===== RESPONSIVE - SMALL TABLET ===== */
@media (max-width: 768px) {
  .gated-issuu-wrapper {
    padding: 1rem 0.75rem;
  }

  .issuu-preview-container {
    min-height: 500px;
  }

  /* Make unlock overlay scrollable from top */
  .issuu-unlock-overlay {
    justify-content: flex-end;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .unlock-content {
    padding: 1.5rem 1.25rem 2rem;
    max-height: none;
    overflow: visible;
    flex-shrink: 0;
  }

  .unlock-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }

  .unlock-icon svg {
    width: 28px;
    height: 28px;
  }

  .unlock-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .unlock-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .unlock-buttons {
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
  }

  .vgbel-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    min-width: unset;
  }

  .unlock-divider {
    margin: 1rem 0;
  }

  .unlock-divider span {
    font-size: 0.75rem;
    padding: 0 0.75rem;
  }

  .unlock-email-section {
    padding: 1rem;
    max-width: 100%;
  }

  .email-option-text {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .email-input-group {
    margin-bottom: 0.5rem;
  }

  .email-input-group input {
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
  }

  /* Email warning responsive - small tablet */
  .email-warning-notice {
    padding: 0.5rem 0.625rem;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
  }
  
  .email-warning-notice span {
    font-size: 0.5625rem;
  }
  
  .email-warning-icon {
    width: 13px;
    height: 13px;
    min-width: 13px;
  }

  .gdpr-consent-section {
    margin: 0.625rem 0;
  }

  .gdpr-checkbox {
    font-size: 0.6875rem;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    line-height: 1.35;
  }

  .gdpr-checkbox input[type="checkbox"] {
    min-width: 16px;
    width: 16px;
    height: 16px;
    margin-top: 0;
  }

  .vgbel-btn-gold {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

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

  .publication-info-preview,
  .publication-info-full {
    padding: 0.75rem 1rem;
  }

  .pub-title {
    font-size: 0.9375rem;
  }

  .publication-info-full {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .pub-info-left {
    width: 100%;
  }

  .pub-actions {
    width: 100%;
    justify-content: center;
  }

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

/* ===== RESPONSIVE - MOBIEL ===== */
@media (max-width: 480px) {
  .gated-issuu-wrapper {
    padding: 0.75rem 0.5rem;
  }

  .issuu-preview-mode,
  .issuu-full-mode {
    border-radius: 0.5rem;
  }

  .issuu-preview-container {
    min-height: 580px;
  }

  /* Critical: Make overlay scroll properly on mobile */
  .issuu-unlock-overlay {
    justify-content: flex-end;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .unlock-gradient {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    min-height: 80px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 30%,
      rgba(255, 255, 255, 0.9) 70%,
      rgba(255, 255, 255, 1) 100%
    );
  }

  .unlock-content {
    position: relative;
    padding: 1.25rem 1rem 1.5rem;
    max-height: none;
    overflow: visible;
    background: var(--gi-white);
    flex-shrink: 0;
  }

  .unlock-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

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

  .unlock-title {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
  }

  .unlock-description {
    font-size: 0.8125rem;
    margin-bottom: 0.875rem;
    line-height: 1.35;
  }

  .unlock-buttons {
    gap: 0.5rem;
    margin-bottom: 0.875rem;
  }

  .vgbel-btn {
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    letter-spacing: 0.25px;
  }

  .btn-icon {
    width: 16px;
    height: 16px;
  }

  .unlock-divider {
    margin: 0.75rem 0;
  }

  .unlock-divider span {
    font-size: 0.6875rem;
  }

  .unlock-email-section {
    padding: 0.875rem;
    border-radius: 0.5rem;
  }

  .email-option-text {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
  }

  .email-input-group {
    margin-bottom: 0.375rem;
  }

  .email-input-group input {
    padding: 0.6875rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border-width: 1.5px;
  }

  /* Email warning responsive - mobile */
  .email-warning-notice {
    padding: 0.4375rem 0.5rem;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
  }
  
  .email-warning-notice span {
    font-size: 0.5rem;
    line-height: 1.3;
  }
  
  .email-warning-icon {
    width: 12px;
    height: 12px;
    min-width: 12px;
  }

  .gdpr-consent-section {
    margin: 0.5rem 0;
  }

  .gdpr-checkbox {
    font-size: 0.625rem;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .gdpr-checkbox input[type="checkbox"] {
    min-width: 14px;
    width: 14px;
    height: 14px;
  }

  .vgbel-btn-gold {
    padding: 0.6875rem 0.875rem;
    font-size: 0.8125rem;
  }

  .modal-content {
    width: 100%;
    height: 92vh;
    border-radius: 0.75rem 0.75rem 0 0;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
    top: 0.5rem;
    right: 0.5rem;
  }

  .publication-info-preview,
  .publication-info-full {
    padding: 0.625rem 0.75rem;
    gap: 0.5rem;
  }

  .pub-icon {
    width: 36px;
    height: 36px;
  }

  .pub-icon svg {
    width: 18px;
    height: 18px;
  }

  .pub-title {
    font-size: 0.875rem;
  }

  .pub-badge,
  .pub-status {
    font-size: 0.625rem;
    padding: 0.1875rem 0.375rem;
  }

  .issuu-like-btn {
    padding: 0.4375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
  }

  .issuu-like-btn .heart-icon {
    width: 16px;
    height: 16px;
  }

  .like-text {
    font-size: 0.75rem;
  }

  /* Toast op mobile */
  #issuu-toast-container {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    transform: none;
  }

  .issuu-toast {
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
  }
}

/* ===== RESPONSIVE - EXTRA SMALL ===== */
@media (max-width: 360px) {
  .gated-issuu-wrapper {
    padding: 0.5rem 0.375rem;
  }

  .issuu-preview-container {
    min-height: 550px;
  }

  .unlock-content {
    padding: 1rem 0.75rem 1.25rem;
  }

  .unlock-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0.625rem;
  }

  .unlock-icon svg {
    width: 20px;
    height: 20px;
  }

  .unlock-title {
    font-size: 1rem;
  }

  .unlock-description {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .vgbel-btn {
    font-size: 0.75rem;
    padding: 0.625rem 0.875rem;
  }

  .unlock-email-section {
    padding: 0.75rem;
  }

  .email-option-text {
    font-size: 0.75rem;
  }

  .email-input-group input {
    padding: 0.625rem 0.6875rem;
    font-size: 0.8125rem;
  }

  /* Email warning responsive - extra small */
  .email-warning-notice {
    padding: 0.375rem 0.4375rem;
    gap: 0.25rem;
  }
  
  .email-warning-notice span {
    font-size: 0.4375rem;
  }
  
  .email-warning-icon {
    width: 10px;
    height: 10px;
    min-width: 10px;
  }

  .gdpr-checkbox {
    font-size: 0.5625rem;
  }

  .gdpr-checkbox input[type="checkbox"] {
    min-width: 12px;
    width: 12px;
    height: 12px;
  }

  .vgbel-btn-gold {
    font-size: 0.75rem;
    padding: 0.625rem 0.75rem;
  }
}

/* ===== COMPACT MODE FOR SHORT SCREENS ===== */
@media (max-height: 650px) {
  .issuu-preview-container {
    min-height: auto;
  }

  .unlock-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .unlock-icon svg {
    width: 20px;
    height: 20px;
  }

  .unlock-description {
    display: none;
  }

  .unlock-content {
    padding: 1rem;
  }

  .unlock-title {
    font-size: 1rem;
    margin-bottom: 0.625rem;
  }

  .unlock-buttons {
    margin-bottom: 0.625rem;
    gap: 0.5rem;
  }

  .vgbel-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .unlock-divider {
    margin: 0.5rem 0;
  }

  .unlock-divider span {
    font-size: 0.625rem;
  }

  .unlock-email-section {
    padding: 0.75rem;
  }

  .email-option-text {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  /* Email warning compact */
  .email-warning-notice {
    padding: 0.375rem 0.5rem;
    margin-bottom: 0.375rem;
  }
  
  .email-warning-notice span {
    font-size: 0.5rem;
  }

  .gdpr-consent-section {
    margin: 0.5rem 0;
  }

  .gdpr-checkbox {
    font-size: 0.5625rem;
    margin-bottom: 0.375rem;
  }

  .vgbel-btn-gold {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ===== VERY SHORT SCREENS ===== */
@media (max-height: 550px) {
  .unlock-icon {
    display: none;
  }

  .unlock-content {
    padding: 0.75rem;
  }

  .unlock-title {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
  }

  .unlock-buttons {
    flex-direction: row;
    margin-bottom: 0.5rem;
  }

  .vgbel-btn {
    width: auto;
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .unlock-divider {
    margin: 0.375rem 0;
  }

  .unlock-email-section {
    padding: 0.625rem;
  }

  .email-option-text {
    display: none;
  }

  .email-input-group {
    margin-bottom: 0.25rem;
  }

  .email-input-group input {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
  
  /* Email warning very short */
  .email-warning-notice {
    padding: 0.3125rem 0.4375rem;
    margin-bottom: 0.3125rem;
  }
  
  .email-warning-notice span {
    font-size: 0.4375rem;
  }

  .gdpr-checkbox {
    font-size: 0.5rem;
    margin-bottom: 0.25rem;
    line-height: 1.25;
  }

  .vgbel-btn-gold {
    padding: 0.5rem 0.625rem;
    font-size: 0.6875rem;
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .issuu-unlock-overlay {
    justify-content: flex-start;
    padding-top: 5%;
  }

  .unlock-gradient {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 15%,
      rgba(255, 255, 255, 1) 30%
    );
  }

  .unlock-content {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .unlock-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .unlock-icon svg {
    width: 20px;
    height: 20px;
  }

  .unlock-title {
    font-size: 1rem;
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
  }

  .unlock-description {
    display: none;
  }

  .unlock-buttons {
    flex-direction: row;
    margin-bottom: 0;
  }

  .vgbel-btn {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .unlock-divider {
    display: none;
  }

  .unlock-email-section {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }

  .email-option-text {
    display: none;
  }

  .email-input-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
  }

  .email-input-group input {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  /* Email warning landscape */
  .email-warning-notice {
    flex: 1;
    min-width: 150px;
    padding: 0.375rem 0.5rem;
    margin-bottom: 0;
  }
  
  .email-warning-notice span {
    font-size: 0.4375rem;
  }

  .gdpr-consent-section {
    flex: 1;
    min-width: 200px;
    margin: 0;
  }

  .gdpr-checkbox {
    margin-bottom: 0.25rem;
    font-size: 0.5625rem;
  }

  .vgbel-btn-gold {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* ===== FULL PAGE WRAPPER SUPPORT ===== */
.full-page-wrapper .issuu-iframe-wrapper-full {
  padding-top: max(100vh, 326px) !important;
}

@media screen and (max-width: 768px) {
  @supports (height: 100dvh) {
    .full-page-wrapper .issuu-iframe-wrapper-full {
      padding-top: max(100dvh, 326px) !important;
    }
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .issuu-unlock-overlay,
  .vgbel-modal,
  #issuu-toast-container {
    display: none !important;
  }
  
  .gated-issuu-wrapper {
    max-width: 100%;
    padding: 0;
  }
}