/*
Theme Name: Testament of Coburnicus
Theme URI: https://testamentofcoburnicus.com
Author: Adam Coburn
Author URI: https://testamentofcoburnicus.com
Description: A WordPress theme featuring Three.js universe background and audio player for The Testament of Coburnicus
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: testament-theme
*/

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

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
}

#page {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Universe Background Canvas - Enhanced Three.js */
#universe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0a0a1a 0%,
        #0d1025 25%,
        #0f0a20 50%,
        #0a0a1a 75%,
        #050510 100%
    );
}

#universe-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#universe-canvas > div {
    overflow: hidden;
}

/* Page Overlay - Subtle gradient overlays per page */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Legacy video background support (now uses overlay) */
.page-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    display: none;
}

.page-video-background video {
    display: none;
}

/* Image Background Fallback - Full Screen Coverage */
.page-image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* Main Content */
main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 2rem;
}

/* Ensure header and footer are above background */
#masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
}

#colophon {
    position: relative;
    z-index: 10;
}

/* Audio Player Sidebar */
#testament-audio-player {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    pointer-events: auto;
}

@media (max-width: 768px) {
    #testament-audio-player {
        display: none !important;
    }

    /* Ensure all interactive elements are above backgrounds */
    #page {
        position: relative;
        z-index: 1;
        pointer-events: auto;
    }

    #masthead {
        position: sticky;
        top: 0;
        z-index: 1001;
        pointer-events: auto;
    }

    main {
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }
}

/* Footer Styles */
.site-footer {
    position: relative;
    z-index: 100;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link,
.social-link:link,
.social-link:visited,
.social-link:hover,
.social-link:active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700 !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.social-link svg,
.social-link:link svg,
.social-link:visited svg {
    fill: #ffd700 !important;
    width: 20px;
    height: 20px;
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 215, 0, 0.3);
    color: #fff !important;
}

.social-link:hover svg {
    fill: #fff;
}

/* ========================================
   HOMEPAGE - MODERN HERO STYLES
   ======================================== */

.homepage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    margin-bottom: 3rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Animated Gradient Title */
.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}

.title-line {
    display: block;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #e0e0e0 25%,
        #ffffff 50%,
        #c0c0c0 75%,
        #ffffff 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s ease-in-out infinite;
}

.title-line.small {
    font-size: 0.4em;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.title-line.accent {
    background: linear-gradient(
        135deg,
        #ffd700 0%,
        #ffaa00 20%,
        #ffd700 40%,
        #ff8c00 60%,
        #ffd700 80%,
        #ffcc00 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
}

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

/* Tagline */
.tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing CTA Button */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    background: linear-gradient(135deg, #ffd700, #ffaa00, #ffd700);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both, buttonGlow 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.3);
}

.cta-button .cta-text {
    position: relative;
    z-index: 2;
}

.cta-button .cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover .cta-glow {
    opacity: 1;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow:
            0 5px 30px rgba(255, 215, 0, 0.3),
            0 0 40px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow:
            0 5px 40px rgba(255, 215, 0, 0.5),
            0 0 60px rgba(255, 215, 0, 0.2);
    }
}

/* ========================================
   VIDEO PROMO HERO
   ======================================== */

.video-promo-hero {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.video-promo-single {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.video-promo-single video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-promo-single .video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.video-sound-toggle {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-sound-toggle:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    transform: scale(1.1);
}

.video-sound-toggle .sound-on {
    display: none;
}

.video-sound-toggle .sound-off {
    display: block;
}

.video-sound-toggle.unmuted .sound-on {
    display: block;
}

.video-sound-toggle.unmuted .sound-off {
    display: none;
}

/* ========================================
   QUOTE CAROUSEL - GLASSMORPHISM
   ======================================== */

.biblical-quotes {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.quote-carousel {
    position: relative;
}

.quote-slide {
    display: none;
    animation: quoteIn 0.6s ease-out;
}

.quote-slide.active {
    display: block;
}

@keyframes quoteIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quote-slide blockquote {
    position: relative;
    padding: 2.5rem 3rem;
    margin: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Animated gradient border */
.quote-slide blockquote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #ffd700,
        #ff8c00,
        #ffd700,
        transparent
    );
    background-size: 200% 100%;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Subtle corner glow */
.quote-slide blockquote::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.quote-slide blockquote p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quote-slide blockquote cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    color: #ffd700;
    text-align: right;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 215, 0, 0.5);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: scale(1.2);
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Site Title in Header */
.site-branding {
    text-align: center;
    margin-bottom: 0.5rem;
}

.site-title-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    text-decoration: none;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.site-title-text {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #e0e0e0 25%,
        #ffffff 50%,
        #c0c0c0 75%,
        #ffffff 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s ease-in-out infinite;
}

.site-title-of {
    font-size: 0.5em;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
}

.site-title-accent {
    background: linear-gradient(
        135deg,
        #ffd700 0%,
        #ffaa00 20%,
        #ffd700 40%,
        #ff8c00 60%,
        #ffd700 80%,
        #ffcc00 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

/* Mobile: Stack and center title */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1rem 0.75rem;
    }

    .site-branding {
        width: 100%;
    }

    .site-title-link {
        flex-direction: column;
        align-items: center;
        gap: 0;
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .site-title-of {
        font-size: 0.4em;
        margin: 0.1em 0;
    }
}

.main-navigation {
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: #fff;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: #ffd700;
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle-icon {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .site-branding {
        flex: 1;
        margin-bottom: 0;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .menu-toggle.active .menu-toggle-icon:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active .menu-toggle-icon:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .menu-toggle-icon:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .main-navigation.active {
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .main-navigation a {
        font-size: 1.5rem;
    }
}

