/* Project: Sinful Celluloid */
/* File: moongate-apps/public/sc-styles.css V1.0.2 */

@charset "utf-8";

html, body {
	height: 100%;
}

body {
	position: relative;
	max-width: 100%;
	background: url('../images/bg-main.png') no-repeat center center fixed;
    background-size: cover;
	margin: 0 auto;
    font-family: 'Abel', sans-serif;
    color: #fff;
    font-size: 18px;
}

a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

h1 {
	font-family: "citrus-gothic", sans-serif;
	font-weight: 300;
	font-style: normal;
	color: #9f1e10;
	font-size: 30px;
}

h2 {
	position: relative;
	background: url('../images/meltingskull.png') no-repeat right;
	background-size: contain;
	padding: 20px;
	margin-right: 20px;
	font-family: "citrus-gothic", sans-serif;
	font-weight: 300;
	font-style: normal;
	color: #9f1e10;
	font-size: 36px;
}

h3 {
	font-family: "citrus-gothic", sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 20px;
	color: #c0b9a7;
}

h4 {
	font-family: 'Courier New', monospace;
	font-weight: 300;
	font-style: normal;
	font-size: 16px;
	color: #9f1e10;
}

.btn {
	display: inline-block;
	position: relative;
  	border-radius: 5px;
	padding: 5px 30px;
	margin-bottom: 20px;
	font-family: 'Courier New', monospace;
	font-size: 16px;
	color: #fff;
	letter-spacing: 1px;
	text-decoration: none;
	border: 2px solid rgba(255, 0, 0, 0.5);
	z-index: 1;
}

.btn::before {
	content: "";
	position: absolute;
	inset: 0; /* covers entire button */
	background: url('../images/bloodspatter-2.png') no-repeat center center;
	background-size: contain;
	opacity: 0;
	transform: scale(0.8);
	transition: transform 0.3s ease, opacity 0.3s ease;
	z-index: 0;
}

.btn:hover::before {
	opacity: 1;
	transform: scale(2);
}

.btn span {
	position: relative; /* ensures text stays above overlay */
	z-index: 1;
}

/* MAIN CONTAINER */
#content-box {
	position: absolute;
	top: clamp(40px, 8vh, 65px);
	bottom: clamp(32px, 10vh, 85px);
	left: calc(clamp(320px, 32vw, 335px) + 24px);
	right: clamp(16px, 14vw, 250px);
	min-width: 320px;
	border-radius: 30px;
	border: 2px solid rgba(255,0,0,.5);
	background: url('../images/bg.png') no-repeat center/cover;
    padding: 
        clamp(12px,1.6vw,24px) /* top */
        clamp(12px,1.6vw,24px) /* right */
        clamp(12px,1.6vw,24px) /* bottom */
        clamp(12px,1.6vw,24px); /* left */
	overflow: hidden;
}

/* ALL CONTENT SITS INSIDE OF SCROLL WRAPPER */
.scroll-wrapper {
    height: 100%;
    overflow: auto;
    box-sizing: border-box;
}

.scroll-wrapper img {
    border-radius: 8px;
}

/* SCROLL BAR */
.scroll-wrapper::-webkit-scrollbar {
    width: 5px;
}

.scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: #6a140a;
    border-radius: 10px;
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* Article Share Link */
.share-link {
  display: inline-block;
  vertical-align: middle;
}

.share-link img {
  width: 30px;
  height: 30px;
  margin-left: 20px;
  display: block;
}

/* HOME SECTION */
.welcome-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
	max-width:100%;
	gap: 20px;
	margin-top: 40px;
	max-width: 95%;
	margin-left: auto;
	margin-right: auto;
}

.welcome-img {
	display: block;
	max-width: 100%;
	width: clamp(460px, 48vw, 600px);
	height: auto;
	margin-inline: auto;
}

.welcome-grid > *{ min-width:0; }
.welcome-img{ flex:0 1 auto; }

.welcome-box,
.about-box {
	background:	linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
	url('../images/bg-film.png') center repeat;
	border: 0px solid rgba(255,0,0,0.5);
	border-radius: 10px;
	padding: 5px 20px 5px 20px;
	color: #fff;
}

.intro-vid {
	display: flex;
	justify-content: center;
	align-items: center;
}

.intro-vid video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,0,0,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    object-fit: cover;
}

.links-grid {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 30px auto 30px 0;
}

.links-grid > *{ min-width:0; }
.links-grid img{ display:block; height:auto; max-width:100%; }

@media (max-width: 720px) {
	.links-grid{
		grid-template-columns:1fr;
		justify-items:center;
		gap:24px;
	}
}

.links-grid a {
	position: relative;
	display: inline-block;
}

.links-grid img {
	height: auto;
	position: relative;
	z-index: 1;
    transition: transform 0.3s ease;
}

.links-grid a:hover {
	transform: scale(1.03);
}

.links-grid a::before {
	content: "";
	position: absolute;
	top: 60%;
	left: 40%;
	width: 140px;
	height: 140px;
	background: url('../images/bloodspatter-1.png') no-repeat center center;
	background-size: contain;
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	z-index: 0;
	pointer-events: none;
}

.links-grid a:hover::before {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* RECENT ARTICLES */
.recent-articles {
	margin-top: 40px;
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
}

/* CONTAINER FOR 'VIEW ALL' BUTTON */
.view-all {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* GUEST AUTHORS */
.authors {
    margin-top: 40px;
    max-width: 85%;
    margin-inline: auto;
}

.authors-grid {
    display: grid;
    grid-template-columns: 210px 1fr;   /* image column = photo width */
    column-gap: 16px;
    align-items: start;
    padding: 12px 8px;
}

.authors-image {
    width: 210px;
}        

.authors-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.authors-text {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.authors-text h3 {
    font-size: clamp(18px,2.6vw,20px);
    margin: 0 0 6px;
}

/* ABOUT SINFUL */
.about-grid {
	margin-top: 40px;
	max-width: 95%;
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
}

.bio-wrapper {
	display: flex;
	gap: 20px;
	margin: 0 auto 40px auto;
	width: 100%;
	color: #fff;
}

.bio-text {
	flex: 1;
	background: 
	linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
	url('../images/bg-film-2.png') center repeat;
	border-radius: 10px;
	padding: 20px;
}

.bio-pic {
	width: auto;
	height: 425px;
	border-radius: 8px !important;
}

/* ≤1440px: photo above text */
@media (max-width:1440px){
  .bio-wrapper{ flex-direction:column; }
  .bio-pic{
    order:-1;
    align-self:center;
    width:min(100%, 520px);
    height:auto;
    margin-bottom:16px;
  }
  .bio-text{ padding:18px; }
}

/* ≤1024px (laptops/tablets): stack, photo on top */
@media (max-width:1024px){
  .bio-wrapper{ flex-direction:column; }
  .bio-pic{
    order:-1;                     /* ensure photo above text */
    align-self:center;
    width:min(100%, 420px);
    height:auto;
    margin-bottom:12px;
  }
  .bio-text{ padding:16px; }
}

/* ≤640px (phones): tighter padding */
@media (max-width:640px){
  .about-grid{ padding:16px; }
  .bio-text{ padding:14px;
  }
}

/* GALLERY */
.gallery-container {
	display: flex;
	gap: 5px;
	margin-top: 5px;
	margin-left: auto;
	margin-right: auto;
	align-items: center;
	justify-content: center;
}

.gallery-container {
	width: 100%;
	overflow: hidden;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;    
    gap: 10px;
    padding: 10px 0;
    scrollbar-width: none;
    scroll-behavior: auto;
}

.gallery-slider img {
	width: 350px;
	height: 300px;
	object-fit: cover;
	flex-shrink: 0;
	border-radius: 6px;
	transition: transform 0.3s;
	cursor: pointer;
}

.gallery-slider img:hover {
	transform: scale(1.02);
}

.gallery-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-end; 
}

.gallery-controls {
	margin-top: 10px;
	display: flex;
	gap: 10px;
}

.gallery-btn {
	border: none;
	padding: 0;
	background-color: transparent;
	cursor: pointer;
}

.left-btn {
	background: url("../images/arrow-left.png") no-repeat center;
	width: 25px;
	height: 25px;
	background-size: contain;
}

.right-btn {
	background: url("../images/arrow-right.png") no-repeat center;
	width: 25px;
	height: 25px;
	background-size: contain;
}

.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	justify-content: center;
	align-items: center;
	z-index: 2000;
}

.lightbox-img {
	max-width: 90%;
	max-height: 80%;
	border-radius: 8px;
}

.close {
	position: absolute;
	top: 20px;
	right: 40px;
	font-size: 3rem;
	color: #222;
	cursor: pointer;
	z-index: 2001;
}

/* ARTICLE GRID AND CARDS - INCLUDES RECENT ARTICLES ON HOME SECTION */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
	padding: 10px;
}

.media-card {
    background: rgba(0, 0, 0, 0.75);
    padding: 5px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 0, 0, 0.1);
}

.media-card:hover {
    transform: scale(1.01);
    border: 2px solid rgba(255, 0, 0, 0.5);
}

.media-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.media-card h3 {
    font-family: 'Courier New', monospace;
    color: white;
    font-size: 18px;
    padding: 10px;
}

.media-card p {
    font-size: 16px;
}

/* CATEGORY CARDS GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
	padding: 10px;
}

.category-card {
	background:	linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
	url('../images/bg-film.png') center repeat;
    padding: 5px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 0, 0, 0.1);
}

.category-card:hover {
    transform: scale(1.01);
    border: 2px solid rgba(255, 0, 0, 0.5);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-card h3 {
    font-family: "citrus-gothic", sans-serif;
    color: white;
    font-size: 20px;
    padding: 10px;
}

/* NAVIGATION (VHS) */
.nav-wrapper {
	position: fixed;
	display: grid;
	align-content: start;	
	bottom: 0;
	left: 0;
	width: clamp(320px, 32vw, 530px);
	padding: clamp(4px, .8vw, 10px);
	gap: clamp(4px, .8vw, 12px);
}

/* Nav: Social */
.nav-wrapper #social-icons {
	position: static;
	display: flex;
	gap: 15px;
	margin: 0 0 -10px 95px;
}

#social-icons a {
	position: relative;
	display: inline-block;
}

#social-icons a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 55px;
	height: 55px;
	background: url('../images/bloodspatter-1.png') no-repeat center/contain;
	transform: translate(-50%,-50%) scale(0);
	opacity: 0;
	transition: transform .3s, opacity .3s;
	z-index: 0;
}

#social-icons a img {
	width: 25px;
	height: 25px;
	position: relative;
	transition: transform .3s;
	z-index: 1;
}

#social-icons a:hover::before {
	transform: translate(-50%,-55%) scale(1);
	opacity: 1;
}

#social-icons a:hover img {
	transform: scale(1.2);
}

/* Nav: Logo */
.nav-wrapper #site-logo {
	position: static;
	margin-left: 40px;
}

#site-logo img {
	width: clamp(200px, 26vw, 225px);
	height: auto;
	display: block;
}

/* Nav: Search */
.nav-wrapper #search-container {
	position: static;
	display: flex;
	align-items:center;
	gap: clamp(8px,1vw,10px);
	width: min(92%, 380px);
	margin-left: 30px;
}

#search-input {
	width: clamp(180px, 22vw, 195px);
	padding: clamp(8px,1.2vw,10px);
	border: 2px solid rgba(255,0,0,.5);
	border-radius: 8px;
	background: rgba(0,0,0,.7);
	color: #fff;
	font-family: 'Courier New', monospace;
	font-size: clamp(12px,1.3vw,12px);
}

#search-btn {
	padding: clamp(8px,1vw,10px) clamp(10px,1.2vw,14px);
	background: rgba(255,0,0,.5);
	font-size: clamp(12px,1.2vw,15px);
	color: #fff;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .3s ease;
}

#search-btn:hover {
	background: rgba(255,0,0,.6);
}

/* Nav: Search Popup Menu */
#search-topic-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #fff;
    z-index: 999;
    width: 100%;
    padding: 4px 0;
}

#search-topic-popup > div {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s;
}

#search-topic-popup > div:hover {
    background: rgba(255, 0, 0, 0.25);
}

.hidden {
    display: none;
}


/* Nav: VHS Tapes */
.nav-wrapper #vhs-stack {
	position: relative;
	width: 100%;
	margin-top: clamp(0px, .4vw, 6px);
}

#vhs-stack > img {
	display: block;
	width: 100%;
	height: auto;
}

/* Nav: Labels */
.vhs-label {
	position: absolute;
	color: #000;
	font-family: 'Courier New', monospace;
	font-size: clamp(11px,1.1vw,16px);
	font-weight: bold;
	text-decoration: none;
	background: transparent; 
	padding: 4px 8px;
	transform-origin: left center;
	z-index: 1;
}

.vhs-label::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100px;
	height: 100px;
	background: url('../images/bloodspatter-2.png') no-repeat center/contain;
	transform: translate(-50%,-50%) scale(0);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
	z-index: -1;
}

.vhs-label:hover::before {
	transform: translate(-50%,-50%) scale(1);
	opacity: 1;
}

.label-1{ top:7.846%;  left:33.273%;  transform:rotate(0deg); }
.label-2{ top:18.385%; left:38.091%;  transform:rotate(-2deg); }
.label-3{ top:28.415%; left:29.909%;  transform:rotate(-1deg); }
.label-4{ top:38.192%; left:27.273%;  transform:rotate(1deg); }
.label-5{ top:48.385%; left:27.273%;  transform:rotate(1deg); color:#fff; }
.label-6{ top:58.615%; left:40.000%;  transform:rotate(-1deg); }
.label-7{ top:69.000%; left:31.818%;  transform:rotate(-1deg); }
.label-8{ top:79.231%; left:23.909%;  transform:rotate(0deg); }
.label-about{ top:88.108%; left:20.909%; transform:rotate(2deg); font-family:'Abel', sans-serif; color:#fff;
}

/* COPYRIGHT */
#copyright {
    position: fixed;
	bottom: 10px;
	right: 10px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1000;
}

#copyright span {
    display: inline;
}

#copyright a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#copyright a:hover {
    text-shadow: 0 0 8px rgba(145, 27, 15, 0.9);
    filter: drop-shadow(0 0 8px rgba(145, 27, 15, 0.9));
}


/* ================================================
   LAPTOP, TABLET, MOBILE
   ================================================ */

/* ======== 1440–1281 ========*/
@media (max-width:1440px){
    #content-box {
        right: clamp(12px,12vw,220px);
        bottom: clamp(24px,9vh,72px);
    }
}

/* ======== 1280–1025 ========*/
@media (max-width:1280px){
    #content-box {
        right: clamp(12px,10vw,200px);
        top: clamp(32px,7vh,60px);
        bottom: clamp(20px,8vh,64px);
    }
}

/* ======== 1024 ========*/
@media (max-width:1024px){
    #content-box {
        right: clamp(8px,8vw,160px);
        left: clamp(8px,60vw,250px);
        top: clamp(28px,7vh,56px);
        bottom: clamp(16px,8vh,56px);
    }
}

/* ======== 980 ======== */
@media (max-width:980px){
    .nav-wrapper { 
        position: static;
        width: 100%;
}

    #content-box {
        position: static;
        margin: 15px 15px 80px;
        min-width: 0;
    }
}

/* ======== ≤640px ======== */
    @media (max-width:640px) {
        html, body {
        height: 100%;
        margin: 0;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    #content-box {
        position: static !important;
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        max-width: calc(100vw - 24px);
        margin: 12px auto;
        padding: clamp(12px,4vw,20px);
        box-sizing: border-box;
        min-width: 0;
    }

    .scroll-wrapper {
        height: auto;
        overflow: visible;
        border-radius: inherit;
    }

    .welcome-grid,.about-grid,.recent-grid,.authors,.links-grid {
        margin-inline: auto !important;
        max-width:100%;
    }

    .recent-articles {
        max-width: 100%;
    }

    .authors-grid {
        grid-template-columns: 1fr;
        /* keep only title + photo explicitly placed */
        grid-template-areas:
        "title"
        "photo"
        "text";
        gap: 12px;
    }
    
    .authors-text {
        display: contents;
    }
    
    .authors-text h3 {
        grid-area: title;
        margin: 0; 
        text-align: center;
    }
    
    .authors-image {
        grid-area: photo;
        justify-self: center;
    }

    .authors-text a {
        display: inline-block;
        width: auto !important;
        max-width: 90vw;
        margin: 8px auto 0; 
    }
    
    /* space between buttons */
    .authors-text a + a {
        margin-top: 5px;
    }
    
    #copyright {
        order: 3;
        margin-top: auto;
        width: 100%;
        position: static;
        margin-top: 15px;
        padding-bottom: 25px;
        justify-content: center;
    }
    
    /* MOBILE NAVIGATION (Hamburger) */
    /* Hamburger Button */
    .nav-wrapper {
        position: static !important;
        width: 100%;
        order: 1;
    }
    
    .nav-wrapper #vhs-stack {
        width: 375px;   
    }

    #nav-toggle {
        position: fixed;
        top: 14px;
        left: 14px;
        width: 36px;
        height: 28px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2001; /* above everything */
    }

    #nav-toggle .bar {
        height: 4px;
        width: 100%;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animate toggle when active */
    #nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }
    #nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    #nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    /* Hide nav by default */
    .nav-wrapper {
        position: fixed !important;
        top: 0;
        left: 0;
        max-width: 375px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.35);
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        padding: 20px;
        z-index: 2000;
    }

    /* Visible when open */
    .nav-wrapper.open {
        transform: translateX(0);
    }

    /* Optional dimmed overlay for the rest of the page */
    body.menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(2px);
        z-index: 1500;
    }
}

/* ===== FORCE HIDE HAMBURGER ON DESKTOP ===== */
@media (min-width: 641px) {
    #nav-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    }
}

/* ======== 414–390 and smaller ======== */
@media (max-width: 390px){
    html body #content-box{
    max-width: calc(100vw - 15px - 15px);
    margin: 8px auto 72px;
    padding: clamp(10px,5vw,18px);
}

    .recent-articles {
    max-width: 100%
    }
}