/* ==========================================================================
   Handcrafted Massively Template - Vanilla CSS Reboot
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,700;0,900;1,300&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Reset & Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --heading-color: #111111;
    --primary: #18bfef;
    --primary-hover: #16a4ce;
    --border: #e2e2e2;
    --border-dark: #dddddd;
    --bg-alt: #f5f5f5;
    
    --font-sans: 'Source Sans Pro', sans-serif;
    --font-serif: 'Merriweather', serif;
}

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

body, html {
    height: 100%;
}

body {
    background-color: #1a1a1a;
    font-family: var(--font-sans);
    font-size: 16pt;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-color);
}

/* Background Layers */
#bg-layer-0, #bg-layer-1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center top;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

#bg-layer-0 {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/hero_0.webp');
    opacity: 1;
}

#bg-layer-1 {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/hero_1.webp');
    opacity: 0;
}

body.scrolled #bg-layer-1 {
    opacity: 1;
}

/* Sponsor Page Background Overrides */
body.page-sponsor #bg-layer-0 {
    opacity: 0 !important;
}

body.page-sponsor #bg-layer-1 {
    opacity: 1 !important;
}

/* Sponsor Sheet Layout */
.sponsor-sheet {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    max-width: 1000px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Sponsor Inner Box (More solid/less transparent) */
.sponsor-box {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    min-height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s, background-color 0.3s;
}

.sponsor-box:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.45);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 900;
    line-height: 1.5;
    color: var(--heading-color);
    margin: 0 0 2rem 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom 0.2s;
}

a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 2px solid var(--heading-color);
    color: var(--heading-color);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.button.large {
    font-size: 1.1rem;
    padding: 1.25rem 3rem;
}

ul.actions {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Wrapper & Layout */
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 72rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Intro (Hero) */
#intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 100vh;
    padding: 15rem 2rem 4rem 2rem;
    color: #fff;
}

#intro .intro-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem 3rem;
    border-radius: 8px;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#intro h1 {
    color: #fff;
    font-size: 5rem;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
}

#intro p {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    max-width: 40rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

#intro .button, #sponsor-main .button {
    border-color: #fff;
    color: #fff;
}

#intro .button:hover, #sponsor-main .button:hover {
    background-color: rgba(255,255,255,0.1);
}

#intro .button.blue, #sponsor-main .button.blue {
    border-color: #18bfef;
    color: #fff;
    background-color: transparent;
}

#intro .button.blue:hover, #sponsor-main .button.blue:hover {
    background-color: #18bfef;
    color: #fff;
}

/* Header inside content area */
#header {
    background: transparent;
    padding: 4rem 0 2rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    padding: 0.5rem 1.5rem;
    border: 3px solid #fff;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.logo:hover {
    background-color: #fff;
    color: #111;
    border-bottom: 3px solid #fff;
}

/* Navigation - Now attached to content box */
#nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

#nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

#nav .links li {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

#nav .links li:last-child {
    border-right: none;
}

#nav .links a {
    display: block;
    padding: 1.5rem 2.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1rem;
    color: #fff;
    border-bottom: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

#nav .links li.active a, #nav .links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Floating Socials */
ul.floating-socials {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

ul.floating-socials a {
    color: #fff;
    border: none;
    display: flex;
    transition: transform 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

ul.floating-socials a:hover {
    transform: scale(1.15);
}

/* Main Content Box */
#main {
    background-color: var(--bg-color);
    padding: 4rem 4rem;
    flex-grow: 1;
}

/* Articles */
.post.featured {
    text-align: center;
    padding-bottom: 4rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 4rem;
}

.post.featured .major h2 {
    font-size: 3.5rem;
    margin: 1rem 0;
}

.post.featured .major .date {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: #aaa;
    margin-bottom: 1rem;
}

/* Sub Posts Grid */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.posts article {
    border-top: 2px solid var(--border);
    padding-top: 4rem;
    text-align: center;
}

.posts article header .date {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.posts article h2 {
    font-size: 2rem;
}

/* Footer Container inside Main layout */
#footer {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 0 0 4px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

#footer .footer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

#footer .footer-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

#footer .footer-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.15);
}

#footer h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

#footer .footer-card p {
    margin-bottom: 1rem;
}

#footer .footer-card p:last-child {
    margin-bottom: 0;
}

#footer .footer-card svg {
    pointer-events: none;
}

#footer .footer-card a {
    color: #fff;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: color 0.2s, border-bottom-color 0.2s;
    position: relative;
    z-index: 5;
}

#footer .footer-card a:hover {
    color: var(--primary);
    border-bottom-color: transparent;
}

/* Copyright Block */
#copyright {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 4rem 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

#copyright ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
}

#copyright ul li {
    width: 100%;
    max-width: 800px;
    line-height: 1.8;
}

#copyright a {
    color: rgba(255,255,255,0.8);
    border-bottom: 1px dotted rgba(255,255,255,0.5);
}

/* Responsive Overrides */
@media (max-width: 980px) {
    #intro h1 { font-size: 4rem; }
    #wrapper { max-width: 95%; margin: 0 auto; }
    #main, #footer { padding: 3rem 2rem; }
}

@media (max-width: 736px) {
    #intro h1 { font-size: 3rem; }
    #nav { padding: 0; flex-direction: column; }
    #nav ul { width: 100%; flex-wrap: wrap; }
    #nav .links li { flex: 1; border-right: none; border-bottom: 1px solid var(--border); text-align: center; }
    .post.featured .major h2 { font-size: 2.5rem; }
    #main { padding: 2rem 1rem; }
}
