/*
Theme Name: Snugglights
Theme URI: https://snugglights.com
Author: Snugglights
Description: Custom theme for Snugglights - displaying the Snugglights logo centered on a black background.
Version: 1.0
Text Domain: snugglights
*/

@font-face {
    font-family: 'STIX Two Text';
    src: url('assets/fonts/STIXTwoText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    background: #0a0908;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 1.8s ease;
    position: relative;
    overflow-y: auto;
}

body.lights-on {
    background: #0e0d0a;
}

.hero {
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 1;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.logo {
    max-width: 50vw;
    max-height: 28vh;
    display: block;
    filter: brightness(0.12) blur(2px);
    transition: filter 0.6s ease;
}

.logo.lit {
    animation: lightUp 0.45s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.logo.glowing {
    filter: brightness(1) drop-shadow(0 0 6px rgba(255,200,100,0.06)) drop-shadow(0 0 0px rgba(255,180,80,0)) drop-shadow(0 0 0px rgba(255,160,60,0));
    transition: filter 0.5s ease;
}

.logo.glowing:hover {
    filter: brightness(1.15) drop-shadow(0 0 12px rgba(255,200,100,0.4)) drop-shadow(0 0 35px rgba(255,180,80,0.18)) drop-shadow(0 0 70px rgba(255,160,60,0.06));
}

.logo.unlit {
    animation: lightDown 0.9s ease forwards;
}

.logo-inner-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.8s ease;
    -webkit-mask-image: url('assets/images/logo_transparent.png');
    mask-image: url('assets/images/logo_transparent.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.logo-inner-glow.active {
    opacity: 1;
}

@keyframes lightUp {
    0%   { filter: brightness(0.12) blur(2px); }
    15%  { filter: brightness(1.5) blur(0px) drop-shadow(0 0 50px rgba(255,200,100,0.5)); }
    40%  { filter: brightness(0.88) blur(0px) drop-shadow(0 0 20px rgba(255,200,100,0.2)); }
    70%  { filter: brightness(1.04) blur(0px) drop-shadow(0 0 10px rgba(255,200,100,0.12)); }
    100% { filter: brightness(1) blur(0px) drop-shadow(0 0 6px rgba(255,200,100,0.06)); }
}

@keyframes lightDown {
    0%   { filter: brightness(1) blur(0px) drop-shadow(0 0 6px rgba(255,200,100,0.06)); }
    25%  { filter: brightness(0.3) blur(1px); }
    100% { filter: brightness(0.12) blur(2px); }
}

.brand-text {
    font-family: 'STIX Two Text', serif;
    font-size: clamp(1.2rem, 3.5vw, 3rem);
    letter-spacing: 0.35em;
    color: rgba(230, 170, 60, 0.12);
    transition: color 0s, text-shadow 0s;
    user-select: none;
}

.brand-text.lit {
    animation: textLightUp 0.45s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.brand-text.shimmer {
    color: rgb(225, 210, 180);
    text-shadow: 0 0 6px rgba(255,200,150,0.06);
    animation: textShimmer 7s ease-in-out infinite;
}

.brand-text.unlit {
    animation: textLightDown 0.9s ease forwards;
}

@keyframes textLightUp {
    0%   { color: rgba(230, 170, 60, 0.12); text-shadow: none; }
    20%  { color: rgba(240, 185, 70, 1); text-shadow: 0 0 35px rgba(255,180,60,0.5), 0 0 70px rgba(255,160,40,0.18); }
    50%  { color: rgba(225, 210, 180, 0.88); text-shadow: 0 0 10px rgba(255,200,150,0.12); }
    100% { color: rgb(225, 210, 180); text-shadow: 0 0 6px rgba(255,200,150,0.06); }
}

@keyframes textShimmer {
    0%, 100% { color: rgb(222, 208, 175); }
    50% { color: rgb(232, 218, 192); }
}

@keyframes textLightDown {
    0%   { color: rgb(225, 210, 180); text-shadow: 0 0 6px rgba(255,200,150,0.06); }
    25%  { color: rgba(230, 170, 60, 0.2); text-shadow: none; }
    100% { color: rgba(230, 170, 60, 0.12); text-shadow: none; }
}

.switch-container {
    perspective: 800px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
    position: relative;
    margin: 7.5vh;
    z-index: 1;
    opacity: 0.9;
    animation: switchEntrance 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes switchEntrance {
    0% {
        opacity: 0;
        transform: scale(0.6);
        filter: blur(4px);
    }
    60% {
        opacity: 0.9;
        filter: blur(0px);
    }
    80% {
        transform: scale(1.04);
    }
    100% {
        opacity: 0.9;
        transform: scale(1);
        filter: blur(0px);
    }
}

.switch-container:focus-visible {
    outline: 2px solid rgba(255, 200, 120, 0.4);
    outline-offset: 10px;
    border-radius: 4px;
}

.switch-inner {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    transform-origin: center 46%;
}

.switch-img {
    display: block;
    max-width: min(270px, 60vw);
    height: auto;
    transition: opacity 0.18s ease;
    filter: brightness(0.7);
}

.switch-img.on {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: contain;
}

.switch-inner.snap-on {
    animation: snapOn 0.5s cubic-bezier(0.22, 0.8, 0.36, 1) forwards;
}

.switch-inner.snap-off {
    animation: snapOff 0.5s cubic-bezier(0.22, 0.8, 0.36, 1) forwards;
}

@keyframes snapOn {
    0% {
        transform: rotateX(0deg) scaleY(1) scaleX(1);
        filter: brightness(1);
    }
    18% {
        transform: rotateX(-22deg) scaleY(0.91) scaleX(1.03);
        filter: brightness(0.7);
    }
    40% {
        transform: rotateX(14deg) scaleY(1.04) scaleX(0.98);
        filter: brightness(1.2);
    }
    58% {
        transform: rotateX(-5deg) scaleY(0.98) scaleX(1.01);
        filter: brightness(1.05);
    }
    75% {
        transform: rotateX(2.5deg) scaleY(1.01) scaleX(1);
        filter: brightness(0.97);
    }
    88% {
        transform: rotateX(-1deg) scaleY(1);
        filter: brightness(1.01);
    }
    100% {
        transform: rotateX(0deg) scaleY(1) scaleX(1);
        filter: brightness(1);
    }
}

@keyframes snapOff {
    0% {
        transform: rotateX(0deg) scaleY(1) scaleX(1);
        filter: brightness(1);
    }
    18% {
        transform: rotateX(22deg) scaleY(0.91) scaleX(1.03);
        filter: brightness(1.15);
    }
    40% {
        transform: rotateX(-14deg) scaleY(1.04) scaleX(0.98);
        filter: brightness(0.7);
    }
    58% {
        transform: rotateX(5deg) scaleY(0.98) scaleX(1.01);
        filter: brightness(0.95);
    }
    75% {
        transform: rotateX(-2.5deg) scaleY(1.01) scaleX(1);
        filter: brightness(1.02);
    }
    88% {
        transform: rotateX(1deg) scaleY(1);
        filter: brightness(1);
    }
    100% {
        transform: rotateX(0deg) scaleY(1) scaleX(1);
        filter: brightness(1);
    }
}

.switch-container:hover .switch-inner:not([class*="snap"]) {
    filter: brightness(1.08);
    transition: filter 0.2s ease;
}

.switch-shadow {
    position: absolute;
    bottom: -8px;
    left: 15%;
    right: 15%;
    height: 14px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
    filter: blur(4px);
    pointer-events: none;
}

.gallery-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 1.5rem 1rem 4rem;
    z-index: 1;
    opacity: 0.2;
    filter: blur(3px);
    transition: opacity 0.45s ease, filter 0.45s ease;
}

.gallery-section.visible {
    opacity: 1;
    filter: blur(0px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 6px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item.span-col-2 {
    grid-column: span 2;
}

.gallery-item.span-row-2 {
    grid-row: span 2;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255,200,100,0.15);
    z-index: 2;
}

.gallery-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-item > img.loaded {
    opacity: 1;
}

.gallery-item .video-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.gallery-item:hover .video-badge {
    opacity: 1;
}

.gallery-item .video-badge img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-content video {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    line-height: 1;
    padding: 8px;
    transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    line-height: 1;
    padding: 16px 12px;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.lightbox-nav:hover {
    color: #fff;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(2px);
}

.site-footer {
    width: 100%;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.footer-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(225, 210, 180, 0.25);
    vertical-align: middle;
}

.site-footer a {
    font-family: 'STIX Two Text', serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: rgba(225, 210, 180, 0.5);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-footer a:hover {
    color: rgb(225, 210, 180);
    text-shadow: 0 0 6px rgba(255, 200, 150, 0.06);
}

body.imprint-page {
    background: #0a0908;
    color: rgb(225, 210, 180);
    font-family: 'STIX Two Text', serif;
    min-height: 100vh;
}

.imprint-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.imprint-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: rgb(225, 210, 180);
    letter-spacing: 0.05em;
}

.imprint-wrapper h2 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: rgba(225, 210, 180, 0.85);
}

.imprint-wrapper h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    color: rgba(225, 210, 180, 0.75);
}

.imprint-wrapper p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(225, 210, 180, 0.6);
}

.imprint-back {
    display: inline-block;
    font-family: 'STIX Two Text', serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(225, 210, 180, 0.5);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.imprint-back:hover {
    color: rgb(225, 210, 180);
}

.contact-section {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-heading {
    font-family: 'STIX Two Text', serif;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: rgba(225, 210, 180, 0.5);
    margin-bottom: 0.75rem;
    text-align: center;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    font-family: 'STIX Two Text', serif;
    font-size: 0.9rem;
    color: rgb(225, 210, 180);
    background: #0a0908;
    border: 1px solid rgba(225, 210, 180, 0.35);
    border-radius: 0;
    padding: 1rem 1.25rem;
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(225, 210, 180, 0.3);
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: rgba(225, 210, 180, 0.6);
}

.contact-field textarea {
    min-height: 160px;
}

.contact-submit {
    font-family: 'STIX Two Text', serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #3a3428;
    background: linear-gradient(
        135deg,
        rgba(200, 185, 150, 0.55) 0%,
        rgba(225, 210, 180, 0.7) 30%,
        rgba(245, 235, 210, 0.8) 50%,
        rgba(225, 210, 180, 0.7) 70%,
        rgba(200, 185, 150, 0.55) 100%
    );
    background-size: 200% 200%;
    border: none;
    border-radius: 0;
    padding: 1rem 3.5rem;
    cursor: pointer;
    align-self: center;
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
    text-shadow:
        0 1px 1px rgba(255, 250, 235, 0.45),
        0 -1px 1px rgba(0, 0, 0, 0.35),
        0 0 8px rgba(255, 220, 160, 0.08);
    animation: sheenDrift 8s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.contact-submit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 250, 235, 0.12) 40%,
        rgba(255, 250, 235, 0.25) 50%,
        rgba(255, 250, 235, 0.12) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: twinkleSweep 6s ease-in-out infinite;
    pointer-events: none;
}

.contact-submit:hover {
    filter: brightness(1.15);
    animation-play-state: running;
}

.contact-submit:active {
    filter: brightness(0.92);
}

@keyframes sheenDrift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes twinkleSweep {
    0% {
        left: -60%;
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    40% {
        opacity: 0.7;
    }
    50% {
        left: 130%;
        opacity: 0;
    }
    100% {
        left: 130%;
        opacity: 0;
    }
}

.contact-message {
    font-family: 'STIX Two Text', serif;
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.2em;
    color: rgba(225, 210, 180, 0.5);
    padding-top: 0.25rem;
}

.contact-message.success {
    color: rgba(180, 210, 140, 0.85);
}

.contact-message.error {
    color: rgba(210, 160, 140, 0.85);
}

body.contact-page {
    background: #0a0908;
    color: rgb(225, 210, 180);
    font-family: 'STIX Two Text', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-wrapper {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    flex: 1;
}

.contact-wrapper .contact-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0 1rem;
    gap: 0.4rem;
}

.contact-wrapper .contact-brand .logo-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.contact-wrapper .contact-brand .logo {
    max-width: 35vw;
    max-height: 18vh;
    display: block;
    filter: brightness(1) drop-shadow(0 0 6px rgba(255, 200, 100, 0.06));
}

.contact-wrapper .contact-brand .brand-text {
    font-family: 'STIX Two Text', serif;
    font-size: clamp(1.2rem, 3.5vw, 2.4rem);
    letter-spacing: 0.35em;
    color: rgb(225, 210, 180);
    text-shadow: 0 0 6px rgba(255, 200, 150, 0.06);
}

.contact-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: rgb(225, 210, 180);
    letter-spacing: 0.05em;
    text-align: center;
}

.contact-wrapper .contact-form {
    gap: 1.25rem;
}

.contact-back {
    display: inline-block;
    font-family: 'STIX Two Text', serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(225, 210, 180, 0.5);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.contact-back:hover {
    color: rgb(225, 210, 180);
}

@media (max-width: 768px) {
    .brand {
        padding: 0 1rem;
        width: 100%;
    }

    .brand-text {
        font-size: clamp(1.5rem, 8.5vw, 3rem);
        letter-spacing: 0.2em;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 5px;
    }

    .gallery-item .video-badge img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    .lightbox-nav {
        display: none;
    }
}