/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b3d 50%, #0f0f23 100%);
    color: #e8d5b7;
    font-family: 'Griffy', cursive;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== BACKGROUND ANIMATIONS ===== */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-spirit {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(180, 255, 180, 0.6);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(180, 255, 180, 0.8);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(100vh) translateX(0) scale(0); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    50% { 
        transform: translateY(50vh) translateX(100px) scale(1); 
        opacity: 0.8; 
    }
    90% { opacity: 1; }
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    border-bottom: 3px solid #8b4513;
    position: relative;
}

.logo {
    font-family: 'Nosifer', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    color: #ff6b35;
    text-shadow: 
        0 0 10px #ff6b35,
        0 0 20px #ff6b35,
        0 0 30px #ff6b35,
        3px 3px 0 #8b0000;
    margin-bottom: 0.5rem;
    animation: flicker 3s infinite alternate;
    /* Better mobile rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tagline {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #d4af37;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* ===== COMING SOON BANNER ===== */
.coming-soon {
    background: linear-gradient(45deg, #8b0000, #a0522d);
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-family: 'Creepster', cursive;
    font-size: 1.5rem;
    border: 2px solid #d4af37;
    margin: 2rem auto;
    max-width: 600px;
    transform: rotate(-2deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: pulse 2s infinite;
}

.coming-soon small {
    font-family: 'Griffy', cursive;
    font-size: 1rem;
}

@keyframes pulse {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    50% { transform: rotate(-2deg) scale(1.05); }
}

/* ===== HOST INTRODUCTION ===== */
.host-intro {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #8b4513;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.3);
    position: relative;
}

.host-intro::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #8b4513, #d4af37, #8b4513);
    border-radius: 20px;
    z-index: -1;
    animation: border-glow 3s ease-in-out infinite alternate;
}

@keyframes border-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.host-quote {
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    color: #e8d5b7;
    margin-bottom: 1rem;
    position: relative;
}

.host-quote::before,
.host-quote::after {
    content: '"';
    font-size: 2rem;
    color: #ff6b35;
    font-family: 'Nosifer', cursive;
}

.host-signature {
    text-align: right;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ===== FEATURED ITEMS PREVIEW ===== */
.featured-preview {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.section-title {
    font-family: 'Creepster', cursive;
    font-size: 2.5rem;
    color: #ff6b35;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

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

.item-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.item-card:hover::before {
    animation: shine 1s ease-in-out;
    opacity: 1;
}

.item-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.item-image {
    width: 100%;
    height: 200px;
    background: #333;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #666;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-image:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 5px;
}

.modal-info {
    margin-top: 1rem;
    text-align: center;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.modal-description {
    color: #e8d5b7;
    font-size: 1rem;
    line-height: 1.4;
}

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #8b0000;
    color: #fff;
    border: 2px solid #d4af37;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.modal-close:hover {
    background: #d4af37;
    color: #000;
    transform: rotate(90deg);
}

.item-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.item-teaser {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    background: linear-gradient(135deg, #8b0000, #2d1b3d);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid #d4af37;
}

.newsletter h3 {
    font-family: 'Creepster', cursive;
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: 2px solid #8b4513;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #e8d5b7;
    font-family: 'Griffy', cursive;
}

.newsletter input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.newsletter button {
    padding: 1rem 2rem;
    background: #8b4513;
    color: #e8d5b7;
    border: none;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter button:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-2px);
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    margin-top: 1rem;
    color: #ccc;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: #999;
    font-size: 0.9rem;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: #8b4513;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: #d4af37;
    transform: scale(1.2);
}

.disclaimer {
    font-size: 0.7rem;
    margin-top: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter input {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .host-intro,
    .featured-preview {
        padding: 1rem;
        margin: 2rem 1rem;
    }
    
    /* Reduce logo effects on mobile for clarity */
    .logo {
        text-shadow: 
            0 0 5px #ff6b35,
            0 0 10px #ff6b35,
            2px 2px 0 #8b0000;
        /* Ensure crisp rendering on mobile */
        transform: translateZ(0);
        will-change: transform;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .host-quote {
        font-size: 1.1rem;
    }
    
    .item-card {
        padding: 1rem;
    }
    
    /* Further reduce glow on very small screens */
    .logo {
        text-shadow: 
            0 0 3px #ff6b35,
            0 0 6px #ff6b35,
            1px 1px 0 #8b0000;
        font-size: clamp(1.8rem, 8vw, 4rem);
    }
}