/* ==========================================================================
   ARTICLE OVERLAY MODAL STYLES (MOZMENE EXACT STYLE & MINIMAL BUTTONS ONLY)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px 20px;
}

.modal-backdrop.is-open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content Container */
.modal-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin: 20px auto 60px auto;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-container {
  transform: translateY(0);
}

/* Fixed Close Button */
.modal-close-btn {
  position: fixed;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10005;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: rotate(90deg);
}

/* Modal Hero Header */
.modal-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #000000;
}

.modal-hero-img, .modal-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: auto !important;
}

.modal-gallery-img, .modal-gallery-video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000000;
  pointer-events: auto !important;
  cursor: pointer;
}

.modal-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, #0a0a0c 0%, rgba(10, 10, 12, 0.75) 60%, rgba(10, 10, 12, 0.2) 100%);
  z-index: 2;
}

.modal-category-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #a0a0ab;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modal Body Content */
.modal-body {
  padding: 40px;
}

.modal-meta-bar {
  display: flex;
  gap: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #d1d1d6;
  margin-bottom: 24px;
}

.modal-description p {
  margin-bottom: 20px;
}

/* Modal Call-To-Action Link Button */
.modal-link-wrapper {
  margin-top: 24px;
  margin-bottom: 32px;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #ffffff;
  color: #000000;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.modal-cta-btn:hover {
  transform: translateY(-3px);
  opacity: 0.95;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* Modal Image Gallery Grid */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.modal-gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modal Footer Navigation (CLEAN MINIMAL BUTTONS ONLY - NO PREVIEWS) */
.modal-footer {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 16px;
  padding: 24px 40px;
  background: #050507;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.nav-prev-btn, .nav-next-btn {
  flex: 1 1 0% !important;
  width: 50% !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 16px !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
}

.nav-btn-arrow {
  font-size: 1rem;
  line-height: 1;
}

.nav-btn-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-prev-btn .nav-btn-arrow { margin-right: 6px; }
.nav-next-btn .nav-btn-arrow { margin-left: 6px; }

.nav-prev-btn:hover, .nav-next-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

@media (max-width: 768px) {
  .modal-backdrop {
    padding: 16px 10px;
  }

  .modal-container {
    margin: 10px auto 40px auto;
  }

  .modal-hero {
    height: 320px;
  }
  .modal-hero-overlay {
    padding: 20px;
  }
  .modal-title {
    font-size: 1.6rem;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-meta-bar {
    gap: 20px;
    flex-wrap: wrap;
  }
  .modal-close-btn {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

  .modal-footer {
    padding: 16px 20px !important;
    gap: 12px !important;
  }

  .nav-prev-btn, .nav-next-btn {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 10px !important;
    font-size: 0.7rem !important;
    letter-spacing: 1px !important;
  }
}

@media (max-width: 480px) {
  .modal-footer {
    padding: 12px 14px !important;
    gap: 8px !important;
  }

  .nav-prev-btn, .nav-next-btn {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 6px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.5px !important;
  }
}

/* ==========================================================================
   MODAL CONTACT FORM STYLES
   ========================================================================== */
.modal-contact-wrapper {
  margin-top: 32px;
  margin-bottom: 32px;
}

.modal-contact-card {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-contact-header {
  margin-bottom: 24px;
}

.modal-contact-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.modal-contact-sub {
  font-size: 0.85rem;
  color: #a0a0ab;
  margin: 0;
}

.modal-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-form-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #a0a0ab;
  text-transform: uppercase;
}

.modal-form-input, .modal-form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #060608;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form-input:focus, .modal-form-textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.modal-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.modal-contact-submit-btn {
  padding: 14px 28px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.modal-contact-submit-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.modal-contact-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.modal-contact-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 12px;
}

.modal-contact-status.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
}

.modal-contact-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}
