/**
 * Indigenous Cultural Warning - Structural CSS
 * Compatible with Micromodal v0.6.1
 */

/**
 * Indigenous Cultural Warning - Gatekeeper Styles
 */

/* 1. Reset & Setup */
.icw-modal {
  display: none;
}

.icw-modal.is-open {
  display: block;
}

/* Force hide the close button if it exists in markup */
.icw-modal__close {
    display: none !important;
}

/* 2. Overlay - Full Screen & High Z-Index */
.icw-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Use a safe high z-index */
  z-index: 2147483647; 
  background: rgba(0,0,0,0.92); /* Very dark */
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

/* 3. Container */
.icw-modal__container {
  background-color: #fff;
  padding: 40px;
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  overflow-y: auto;
  box-sizing: border-box;
  /* Reset text alignment */
  text-align: left;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* 4. Animation */
.icw-modal__container {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.icw-modal.is-open .icw-modal__container {
    opacity: 1;
    transform: scale(1);
}

/* 5. Typography */
.icw-modal__title {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.75rem;
  color: #111;
  line-height: 1.2;
}

.icw-modal__content {
  margin-bottom: 30px;
  line-height: 1.6;
  color: #444;
  font-size: 1.1rem;
}

/* 6. Button Reset & Layout */
.icw-modal__footer {
    display: flex;
    justify-content: flex-end; /* Align right */
    gap: 15px;
    flex-wrap: wrap;
}

/* Explicitly target the buttons to override Theme/Elementor Styles */
a.icw-modal__btn,
button.icw-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.2;
    /* Reset defaults */
    box-shadow: none;
    text-shadow: none;
    margin: 0;
}

/* Hover States */
.icw-modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.icw-modal__btn:active {
    transform: translateY(0);
}

/* Specific Button Styles */
.icw-btn-exit {
    background-color: #fff;
    color: #000 !important;
    margin-right: 10px; /* Space between buttons */
}

.icw-btn-exit:hover {
    background-color: #000;
    color: #fff !important;
}

.icw-btn-enter {
    background-color: #d63031;
    color: #fff;
}

.icw-btn-enter:hover {
    background-color: #b71c1c;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .icw-modal__footer {
        flex-direction: column-reverse; /* Stack buttons, Enter on top */
    }
    
    .icw-modal__btn {
        width: 100%;
        text-align: center;
    }
}