/* ============================================
   FIFTH FLAME THEME - House of the Fifth Flame
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;600&family=Montserrat:wght@200;300;400&display=swap');

/* ============================================
   CSS VARIABLES - Fifth Flame Color Palette
   ============================================ */

:root {
    --flame: #ff6b35;
    --rose: #c41e3a;
    --gold: #d4af37;
    --deep: #1a0e0e;
    --smoke: #2d1f1f;
    --cream: #f8f4e6;
    --ember: #ff4500;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

body {
    background: linear-gradient(135deg, var(--deep) 0%, var(--smoke) 50%, #0d0505 100%);
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

a {
    color: var(--flame);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--rose);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* ============================================
   SITE WRAPPER
   ============================================ */

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    text-align: center;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    margin-bottom: 4rem;
    animation: fade-in 1s ease-out;
}

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

.site-logo img {
    max-height: 80px;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
}

.site-seal {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.seal-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
    animation: seal-glow 4s ease-in-out infinite;
}

@keyframes seal-glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.6));
        transform: scale(1.05);
    }
}

.site-title a {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--flame) 0%, var(--rose) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

.site-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 300;
    margin-top: 1rem;
    opacity: 0.9;
}

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

.site-nav {
    margin-top: 2rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.site-nav a:hover,
.site-nav a.nav-current {
    border-color: var(--flame);
    background: rgba(255, 107, 53, 0.1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.site-main {
    min-height: 60vh;
    padding: 2rem 0;
}

/* ============================================
   POST CARDS (for index/home page)
   ============================================ */

.post-card {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 2px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.post-card:hover {
    border-color: var(--flame);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.post-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-card-title a {
    color: var(--gold);
}

.post-card-title a:hover {
    color: var(--flame);
}

.post-card-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1rem 0;
    color: var(--cream);
    opacity: 0.9;
}

.post-card-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
    margin-top: 1.5rem;
}

/* ============================================
   INDIVIDUAL POST
   ============================================ */

.post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.post-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--flame);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--flame);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.post-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

.post-excerpt {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--cream);
    opacity: 0.9;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.post-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
    margin-top: 1rem;
}

.post-feature-image {
    margin: 2rem 0 3rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.15rem;
    line-height: 2;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin: 2.5rem 0 1rem;
    letter-spacing: 0.05em;
}

.post-content h2 {
    font-size: 2rem;
}

.post-content h3 {
    font-size: 1.6rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content strong {
    color: var(--flame);
    font-weight: 600;
}

.post-content em {
    font-style: italic;
    color: var(--gold);
}

.post-content blockquote {
    border-left: 3px solid var(--flame);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--cream);
    opacity: 0.9;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
}

.post-signature {
    font-size: 2rem;
    margin: 2rem 0;
    animation: fade-in 2s ease-out;
}

.post-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.post-tag-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.post-tag-link:hover {
    border-color: var(--flame);
    background: rgba(255, 107, 53, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    margin-top: 6rem;
    padding: 4rem 0 3rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
}

.site-footer-text {
    font-size: 1rem;
    color: var(--cream);
    opacity: 0.8;
}

.alcatraz {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--flame) 0%, var(--rose) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 1rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* ============================================
   ANIMATED FLAME PARTICLES
   ============================================ */

.flame-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flame-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--flame);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 8s infinite;
    box-shadow: 0 0 8px var(--flame);
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) translateX(var(--drift, 0)) scale(1.5);
    }
}

/* ============================================
   ATMOSPHERIC GLOW ORBS
   ============================================ */

.glow-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--flame) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    animation: drift 20s ease-in-out infinite;
    z-index: 1;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes drift {
    0%, 100% {
        transform: translate(10vw, 10vh);
    }
    25% {
        transform: translate(80vw, 20vh);
    }
    50% {
        transform: translate(70vw, 70vh);
    }
    75% {
        transform: translate(20vw, 60vh);
    }
}

/* ============================================
   WELCOME HOME PAGE
   ============================================ */

.welcome-home {
    max-width: 900px;
    margin: 0 auto;
}

.rose-icon {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    text-align: center;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--flame) 0%, var(--rose) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 3s ease-in-out infinite;
}

.welcome-subtitle {
    text-align: center;
    font-style: italic;
    font-size: 1.15rem;
    margin: 1.5rem 0 3rem;
    color: var(--cream);
    opacity: 0.9;
}

.welcome-section {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 2px;
    padding: 2.5rem;
    margin: 3rem 0;
    backdrop-filter: blur(10px);
}

.welcome-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-section p {
    margin: 1.5rem 0;
    line-height: 2;
}

.welcome-benefits {
    list-style: none;
    margin: 2rem 0;
}

.welcome-benefits li {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.8;
}

.welcome-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
}

.welcome-quote {
    text-align: center;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--flame);
    margin: 3rem 0;
    padding: 2.5rem;
    border-left: 3px solid var(--flame);
    border-right: 3px solid var(--flame);
    animation: quote-glow 4s ease-in-out infinite;
}

@keyframes quote-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
    }
}

.welcome-invitation {
    text-align: center;
    font-size: 1.4rem;
    margin-top: 2.5rem;
}

.welcome-forming {
    text-align: center;
    opacity: 0.9;
}

.welcome-cta {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 2px;
}

.welcome-cta h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.welcome-cta p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.welcome-choose {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

.welcome-signature {
    text-align: center;
    font-size: 2.5rem;
    margin: 3rem 0;
}

.fade-in-up {
    animation: fade-in 1.5s ease-out;
}

.fade-in-delay-1 {
    animation: fade-in 1.5s ease-out 0.5s backwards;
}

.fade-in-delay-2 {
    animation: fade-in 1.5s ease-out 1s backwards;
}

.fade-in-delay-3 {
    animation: fade-in 1.5s ease-out 1.5s backwards;
}

/* ============================================
   DIVIDER (for welcome page)
   ============================================ */

.divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--flame), transparent);
    margin: 3rem auto;
    position: relative;
}

.divider::before,
.divider::after {
    content: '🔥';
    position: absolute;
    top: -10px;
    font-size: 1.2rem;
    animation: flicker 2s ease-in-out infinite;
}

.divider::before {
    left: -20px;
    animation-delay: 0.3s;
}

.divider::after {
    right: -20px;
    animation-delay: 0.6s;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    25% { opacity: 0.8; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    75% { opacity: 0.9; transform: scale(0.98); }
}

/* ============================================
   TIER BUTTONS
   ============================================ */

.tier-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tier-button {
    background: rgba(255, 107, 53, 0.08);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tier-button:hover {
    border-color: var(--flame);
    background: rgba(255, 107, 53, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.tier-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
}

.tier-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--cream);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tier-button:hover .tier-title {
    color: var(--flame);
}

@media (max-width: 768px) {
    .tier-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   KOENIG EDITOR - REQUIRED IMAGE CLASSES
   ============================================ */

.kg-width-wide {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 1200px;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-image {
    max-width: 100%;
    height: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .site-title a {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .site-nav ul {
        gap: 1rem;
    }
    
    .alcatraz {
        font-size: 1.5rem;
    }
    
    .kg-width-wide,
    .kg-width-full {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}
