/* 
 * Tarot Man Podcast - Main Stylesheet
 * Designed to match the mystical theme of the Oracle
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* Configurable Variables */
:root {
    /* Colors */
    --dark-bg: #0a0a1a;
    --darker-purple: #1e1a3c;
    --medium-purple: #4b0082;
    --bright-purple: #8A2BE2;
    --soft-purple: #9370DB;
    --light-text: #e0e0ff;
    --accent-gold: #ffc400;
    --accent-copper: #b87333;
    
    /* Sizes */
    --crystal-ball-size: 320px;
    --header-height: 80px;
    
    /* Effects */
    --crystal-ball-glow-color: #8A2BE2;
    --crystal-ball-glow-intensity: 0.5;
    --text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
    --box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Philosopher', serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" preserveAspectRatio="none"><circle cx="500" cy="500" r="1" fill="white" opacity="0.8"/></svg>') repeat;
    background-size: 100px 100px;
    animation: twinkle 5s infinite;
    z-index: -1;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    background: radial-gradient(circle at center, rgba(75, 0, 130, 0.3) 0%, rgba(10, 10, 26, 0.9) 80%);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navigation li a {
    font-family: 'Cinzel', serif;
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.navigation li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--bright-purple);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navigation li a:hover::after,
.navigation li a.active::after {
    width: 80%;
}

.navigation li a:hover,
.navigation li a.active {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.8);
}

.navigation li a.special-link {
    color: var(--accent-gold);
    border: 1px solid rgba(138, 43, 226, 0.5);
    background: rgba(75, 0, 130, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
}

.navigation li a.special-link:hover {
    background: rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Audio Controls */
.audio-control {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    align-items: center;
    background: rgba(30, 30, 60, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 30px;
    padding: 5px 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    z-index: 10;
}

.audio-btn {
    background: transparent !important;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    box-shadow: none !important;
    padding: 8px !important;
    margin: 0 !important;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    background: rgba(138, 43, 226, 0.3) !important;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5) !important;
    transform: none !important;
}

#volume-slider {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    background: rgba(138, 43, 226, 0.3);
    outline: none;
    margin-left: 10px;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #9370DB;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.8);
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #9370DB;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.8);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 20px) 0 50px;
    position: relative;
    overflow: hidden;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(10, 10, 26, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.3);
}

.site-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--light-text);
    text-shadow: var(--text-shadow);
    position: relative;
}

.site-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    bottom: -10px;
    left: 20%;
    background: linear-gradient(90deg, transparent, var(--bright-purple), transparent);
}

.tagline {
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 196, 0, 0.4);
}

/* Crystal Ball Styling */
#crystal-ball {
    width: var(--crystal-ball-size);
    height: var(--crystal-ball-size);
    position: relative;
    margin: 1rem auto;
    transition: all 0.5s ease;
    cursor: pointer;
}

#crystal-ball-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, var(--crystal-ball-glow-intensity)));
    transition: all 0.5s ease;
}

#crystal-ball-highlight {
    position: absolute;
    top: 15%;
    left: 35%;
    width: 20%;
    height: 20%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: rotate(-25deg);
    z-index: 2;
    pointer-events: none;
    animation: highlight-shift 5s infinite ease-in-out;
}

@keyframes highlight-shift {
    0% { transform: rotate(-25deg) translateX(0); }
    50% { transform: rotate(-20deg) translateX(30px) translateY(10px); }
    100% { transform: rotate(-25deg) translateX(0); }
}

#crystal-ball.pulsing #crystal-ball-image {
    animation: crystal-pulse 8s infinite;
}

@keyframes crystal-pulse {
    0% { filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.4)); }
    50% { filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.8)); }
    100% { filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.4)); }
}

#crystal-ball.hover #crystal-ball-image {
    filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.8));
}

#crystal-ball.glowing #crystal-ball-image {
    filter: drop-shadow(0 0 35px rgba(138, 43, 226, 1));
    animation: intense-pulse 3s;
}

@keyframes intense-pulse {
    0% { filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.5)); }
    50% { filter: drop-shadow(0 0 35px rgba(138, 43, 226, 1)); }
    100% { filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.5)); }
}

/* Countdown */
.countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0 2rem;
    padding: 1rem;
    background: rgba(75, 0, 130, 0.2);
    border-radius: 50px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.countdown-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
    margin-bottom: 0.5rem;
}

.countdown-text {
    font-size: 1.2rem;
    font-style: italic;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.cta-button i {
    margin-right: 8px;
}

.cta-button.primary {
    color: var(--light-text);
    background: linear-gradient(135deg, var(--bright-purple), var(--medium-purple));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--bright-purple), var(--medium-purple) 70%);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-3px);
}

.cta-button.secondary {
    color: var(--light-text);
    background: rgba(30, 30, 60, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(75, 0, 130, 0.4);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    transform: translateY(-3px);
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    margin: 2rem 0;
    position: relative;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: var(--text-shadow);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, transparent, var(--bright-purple), transparent);
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.text-content {
    flex: 2;
    min-width: 300px;
    text-align: left;
    padding: 1.5rem;
    background: rgba(30, 30, 60, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.text-content p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: left;
}

.quote-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--accent-gold);
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

blockquote::before,
blockquote::after {
    content: '"';
    font-size: 3rem;
    position: absolute;
    opacity: 0.2;
    color: var(--bright-purple);
}

blockquote::before {
    top: -20px;
    left: -10px;
}

blockquote::after {
    bottom: -40px;
    right: -10px;
}

cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 1rem;
    color: var(--light-text);
    text-align: right;
}

/* Episodes Section */
.coming-soon {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 30, 60, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.coming-soon p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.teaser-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--accent-gold);
    text-shadow: 0 0 5px rgba(255, 196, 0, 0.3);
    margin: 1.5rem 0;
}

.subscription-platforms {
    margin-top: 2rem;
}

.platform-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.platform-icons span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 30px;
    font-size: 1rem;
}

.platform-icons i {
    font-size: 1.2rem;
    color: var(--bright-purple);
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.episode-card {
    background: rgba(30, 30, 60, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.episode-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 10, 26, 0.8);
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.episode-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--accent-gold);
}

.episode-description {
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.episode-date {
    margin-top: 1.5rem;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--soft-purple);
}

/* Subscription Form */
.subscription-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(30, 30, 60, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1rem;
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 30px;
    color: var(--light-text);
    transition: all 0.3s ease;
}

textarea {
    border-radius: 15px;
    resize: vertical;
    min-height: 120px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--bright-purple);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.submit-button {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    background: linear-gradient(135deg, var(--bright-purple), var(--medium-purple));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--bright-purple), var(--medium-purple) 70%);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(30, 150, 30, 0.2);
    border: 1px solid rgba(30, 150, 30, 0.3);
    color: #98FB98;
}

.form-message.error {
    background: rgba(150, 30, 30, 0.2);
    border: 1px solid rgba(150, 30, 30, 0.3);
    color: #FFA07A;
}

/* Social Icons */
.social-follow {
    margin-top: 2rem;
    text-align: center;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--light-text);
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.social-icon:hover {
    background: var(--medium-purple);
    color: white;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(30, 30, 60, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    min-width: 250px;
}

.contact-method i {
    font-size: 2rem;
    color: var(--bright-purple);
}

#contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(30, 30, 60, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

/* Footer */
footer {
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.footer-social .social-icons {
    margin-top: 0;
}

/* Media Queries */
@media (max-width: 992px) {
    :root {
        --crystal-ball-size: 280px;
    }

    .section-content {
        flex-direction: column;
    }

    .quote-box {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.95);
        padding: 1rem 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(138, 43, 226, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 99;
    }

    .navigation.active {
        transform: translateY(0);
        opacity: 1;
    }

    .navigation li {
        width: 100%;
    }

    .navigation li a {
        display: block;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-radius: 0;
    }

    .navigation li a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    :root {
        --crystal-ball-size: 220px;
    }

    .audio-control {
        top: var(--header-height);
        right: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
    }

    header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 150; /* Between navigation and hamburger */
      }   
    /* Give the menu toggle a higher z-index */
    .menu-toggle {
        position: relative;
        z-index: 200; /* Higher than other nav elements */
    }

    /* Ensure navigation items stay below the toggle */
    .navigation {
        z-index: 100;
    }
}