/* Home Page CSS */

/* Hero Section */
.home-hero {
    position: relative;
    height: 55vh;
    min-height: 350px;
    background-color: var(--warm-gray-900); /* Fallback color */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
    border-bottom: 4px solid var(--primary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--primary);
    padding: var(--spacing-2xl);
    border: 2px solid var(--primary);
    background: rgba(0, 0, 0, 0.7);
    max-width: 900px;
    margin: 0 var(--spacing-xl);
    /* Art Deco Corner Cutout Effect */
    clip-path: polygon(
        20px 0, 100% 0,
        100% calc(100% - 20px), calc(100% - 20px) 100%,
        0 100%, 0 20px
    );
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--primary);
    opacity: 0.5;
    pointer-events: none;
    clip-path: polygon(
        20px 0, 100% 0,
        100% calc(100% - 20px), calc(100% - 20px) 100%,
        0 100%, 0 20px
    );
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: var(--primary);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin: 0;
    font-weight: 300;
}

/* Content Styling */
.content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.content h2 {
    text-align: center;
    color: var(--primary);
    border-bottom: 1px solid var(--primary-dark);
    padding-bottom: var(--spacing-md);
    margin-top: var(--spacing-3xl);
    display: inline-block;
    width: 100%;
}

.content p {
    margin-bottom: var(--spacing-xl);
}

/* Call to Action Button */
.content a[href*="the-home-bar-encyclopedia"] {
    display: block;
    width: fit-content;
    margin: var(--spacing-2xl) auto;
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.content a[href*="the-home-bar-encyclopedia"]:hover {
    background: var(--primary);
    color: var(--warm-gray-900);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Art Deco Image Container */
.art-deco-figure {
    margin: var(--spacing-3xl) auto;
    max-width: 800px;
    position: relative;
    padding: 10px;
    border: 1px solid var(--primary-dark);
    background: rgba(0, 0, 0, 0.3);
    /* Corner Cutout */
    clip-path: polygon(
        20px 0, 100% 0,
        100% calc(100% - 20px), calc(100% - 20px) 100%,
        0 100%, 0 20px
    );
    transition: all var(--transition-slow);
}

.art-deco-figure:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.art-deco-figure img {
    width: 100%;
    height: auto;
    display: block;
    /* Subtle vintage feel */
    filter: contrast(1.1) sepia(0.1);
}

.art-deco-figure figcaption {
    text-align: center;
    font-family: var(--font-ui);
    color: var(--cream);
    padding: var(--spacing-md) 0 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 1px solid var(--primary-dark);
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .home-hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
