/* =========================================================
   SYNOD OF DARKNESS — POPUP SYSTEM

   File: popup.css
   Project: Synod of Darkness
   Scope: Universal Popup System

   Purpose:
   - Controls popup windows displayed above the Home Page.
   - Controls the internal popup graphical interface.
   - Controls popup header graphical layers.
   - Controls popup content background.
   - Controls popup border and transparency.
   - Controls the Close interface.

   Architecture:
   - .sod-popup-window:
     External popup window used by index.html.

   - .sod-popup:
     Internal graphical interface used by popup.html.

   IMPORTANT:
   Popup styling belongs exclusively in this file.
   No popup styling must be added to home.css.

   Last modified:
   2026-08-25
   ========================================================= */


/* =========================================================
   PAGE RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    background: transparent;

    overflow: hidden;
}


/* =========================================================
   EXTERNAL POPUP WINDOW

   Used by index.html for:
   - Content
   - Newsletter
   - Contact
   ========================================================= */

.sod-popup-window {
    position: fixed;
    z-index: 1000;

    top: 50%;
    left: 50%;

    width: 80vw;
    height: 80dvh;

    transform: translate(-50%, -50%);

    display: none;

    margin: 0;
    padding: 0;

    border: 1px solid #6caa86;

    overflow: hidden;

    background: transparent;

    opacity: 1;
}


/* =========================================================
   EXTERNAL POPUP — OPEN STATE
   ========================================================= */

.sod-popup-window.is-open {
    display: block;
}


/* =========================================================
   EXTERNAL POPUP — IFRAME
   ========================================================= */

.sod-popup-window > iframe {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    opacity: 1;
}


/* =========================================================
   INTERNAL POPUP MASTER CONTAINER

   Used exclusively inside popup.html.
   ========================================================= */

.sod-popup {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    margin: 0;
    padding: 0;

    background: transparent;

    overflow: hidden;
}


/* =========================================================
   LAYER 1 — POPUP HEADER
   ========================================================= */

.sod-popup-header-01 {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 80px !important;

    max-height: 80px !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    object-fit: fill !important;

    z-index: 1;

    pointer-events: none;
    user-select: none;
}

img.sod-popup-header-01 {
    height: 80px !important;
}


/* =========================================================
   LAYER 2 — CENTRAL HEADER ORNAMENT
   ========================================================= */

.sod-popup-header-02 {
    position: absolute;

    top: 5px;
    left: 50%;

    transform: translateX(-50%);

    width: auto;
    height: 120px;

    margin: 0;
    padding: 0;

    display: block;

    object-fit: contain;

    z-index: 2;

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   LAYER 3 — POPUP TITLE
   ========================================================= */

.sod-popup-title {
    position: absolute;

    top: 10px;
    left: 10px;

    margin: 0;
    padding: 0;

    color: #d0d0d0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: bold;

    text-decoration: underline;

    line-height: 1;

    white-space: nowrap;

    text-shadow:
        0 1px 2px #000000,
        0 0 4px rgba(108, 170, 134, 0.35);

    z-index: 3;

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   LAYER 4 — POPUP CONTENT
   ========================================================= */

.sod-popup-content {
    position: absolute !important;

    top: 95px !important;

    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;

    width: auto !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    transform: none !important;

    margin: 0 !important;
    padding: 0 !important;

    /*
     * Light semi-transparent black base.
     * No graphical texture is applied to the content area.
     */
    background: rgba(0, 0, 0, 0.60);

    border: 1px solid rgba(120, 120, 120, 0.35);
    border-radius: 8px;

    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.75),
        inset 0 0 18px rgba(0, 0, 0, 0.65);

    z-index: 4;

    overflow: hidden;

    pointer-events: none;
}


/* =========================================================
   LAYER 5 — CLOSE LINK
   ========================================================= */

.sod-popup-close {
    position: absolute;

    top: 10px;
    right: 10px;

    margin: 0;
    padding: 0;

    color: #d0d0d0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: bold;

    text-decoration: underline;

    line-height: 1;

    text-shadow:
        0 1px 2px #000000,
        0 0 4px rgba(108, 170, 134, 0.35);

    z-index: 5;

    cursor: pointer;

    user-select: none;
}


/* =========================================================
   CLOSE — HOVER / KEYBOARD FOCUS
   ========================================================= */

.sod-popup-close:hover,
.sod-popup-close:focus {
    color: #ffffff;

    text-shadow:
        0 0 5px rgba(108, 170, 134, 0.75);
}