/*
Theme Name: Jays Magick
Version: 1.6
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.site-content {
    width: 100%;
    margin: auto;

    /* content scroll */
    position:relative;
    z-index:2;

    background:#fff;
}

.opening-content-node-area {
    padding:80px; 
    background:#222; 
    color:#fff; 
    position:relative; 
    z-index:10; 
    text-align: center;
}

.content-node-area-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.content-node-layer {
    position: relative;
    z-index: 1;
    padding-left: 10px;
    padding-right: 10px;
}

/* FLOATING OBJECTS */

.floating {
    position: fixed;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.4s ease, transform 0.3s ease;
}

/* Revealed once body.scrolled is toggled on by js/floating-visibility.js
   (fires when the .hero section scrolls out of view) */
body.scrolled .floating {
    opacity: 1;
    pointer-events: auto;
}

.floating:hover {
    transform: scale(1.1);
}

.floating img {
    width: 90px;
    height: auto;
    display: block;
}

/* POSITIONS */

.top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.bottom-left {
    left: 10px;
    bottom: 10px;
}

.bottom-right {
    right: 10px;
    bottom: 10px;
}

/* dynamic floating objects */

.floating.auto {
    position: fixed;
    z-index: 9999;

    padding: 10px 14px;
    background: white;
    border-radius: 10px;

    text-decoration: none;
    color: #ffb8b8;
    font-family: "SUSE Mono", monospace;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    transition: transform 0.2s ease;
}

.floating.auto:hover {
    transform: scale(1.1);
}

/* PREVIOUS: random position automatically assigned */
/* .floating.auto.draggable {
    position: fixed;
    cursor: grab;
    user-select: none;
}

.floating.auto.draggable:active {
    cursor: grabbing;
} */


/* TEMP FIX: stacked on the right edge, position fixed
   (does not move with scroll), left/top no longer randomized. */
.floating.auto.stacked-right {
    position: fixed;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
}

.orbit-item {
    position: fixed;
}

/* the actual image moves inside its own orbit */
.orbit-item img {
    width: 100px;
    height: auto;

    animation: orbit 4s linear infinite !important;
    transform-origin: center;
}

/* ORBIT ANIMATION */
@keyframes orbit {
    0% {transform: translate(0px, 0px);}
    25% {transform: translate(10px, -10px);}
    50% {transform: translate(0px, -20px);}
    75% {transform: translate(-10px, -10px);}
    100% {transform: translate(0px, 0px);}
}

/* OBJECT SHAPES */
.shape-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: crimson !important;
}

.shape-rectangle {
    width: 180px;
    height: 70px;
    border-radius: 10px;
    background: royalblue !important;
}

.shape-star {
    font-size: 60px;
    color: gold !important;
    background: transparent;
}

/* ================================
   CONTENT NODE MAP — 4-QUADRANT GRID
================================ */

.content-frame {
    position: relative;
    width: 100%;
    height: 800px;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
}

.content-quadrant {
    position: relative;
    overflow: visible;
    border: 1px dashed rgba(0, 0, 0, 0.08); /* remove once layout is finalized */
}

.quadrant-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
    pointer-events: none;
}

/* Base node: positioned by left/top % set inline via PHP,
   relative to its own quadrant box (not the whole canvas). */
.content-node {
    position: absolute;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;

    cursor: pointer;
    transition: transform 0.2s ease;
}

.content-node:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Image node variant — image shown directly; title/excerpt only
   render when "show_title" is enabled in node_layout.json */
.content-node.has-media {
    width: auto;
    padding: 0;
    /* width: fit-content; */
    color: #fea8a8;
    text-align: center;
}

.content-node.has-media .node-image {
    width: calc(180px * var(--node-scale, 1)); /*100%*/
    height: calc(130px * var(--node-scale, 1)); /*130px*/
    object-fit: cover;
    /* border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); */
    display: block;
}

.content-node.has-media .node-text {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.content-node.has-media .node-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.content-node.has-media .node-excerpt {
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.2px;
    line-height: 1.3;
    opacity: 0.75;
    max-width: 180px;
    text-transform: none;
}

/* ================================
   UPCOMING EVENTS (The Events Calendar)
================================ */

.upcoming-events-list {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.upcoming-event-link {
    display: flex;
    align-items: center;
    gap: 16px;

    text-decoration: none;
    color: #222;

    padding: 10px;
    border-radius: 10px;

    transition: background 0.2s ease;
}

.upcoming-event-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.upcoming-event-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.upcoming-event-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upcoming-event-date {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
}

.upcoming-event-title {
    font-size: 16px;
    font-weight: bold;
}

/* ================================
   SINGLE PAGE / SINGLE EVENT LAYOUT
   (page.php, singular.php, index.php fallback)
================================ */

.single-page-content {
    width: 70%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.single-page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
}

.single-page-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.single-event-meta {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 24px;
}

.single-page-body {
    font-size: 16px;
    line-height: 1.7;
}

.hero{
    height:100vh;
    position:relative;
    overflow:hidden;
}


.hero-image{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
}


.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.2);
}

.hero-content{
    position:relative;
    z-index:2;

    height:100%;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding: 2rem;

    text-align:center;
    color:#f5c542;
}

.hero-content h1{
    font-size:4rem;
    text-transform:uppercase;
    font-family: "SUSE Mono", monospace;
}

.hero-content p{
    margin-top:20px;
    letter-spacing:4px;
}

.has-text-align-center {
    text-align:center;
}

.has-suse-mono-font-family {
    font-family: "SUSE Mono", monospace;
}

.has-medium-font-size{
    font-size: 1.25rem !important;
}

.has-x-small-font-size{
    font-size: 16px !important;
}


.has-luminous-vivid-amber-color {
    color:#fcb900;
}

.wp-block-group {
    box-sizing: border-box;
}