/*
   static/css/index.css
   Index/Home page specific styles for AlgorithmicFIRE
*/

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -2rem;
    /* Counteract main-content padding */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /* Dark gray background fading left to right */
    background: linear-gradient(to right, rgba(51, 51, 51, 0.98) 0%, rgba(51, 51, 51, 0.9) 40%, rgba(51, 51, 51, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
    padding: 3rem;
    margin-left: 10%;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}

.hero-title a {
    text-decoration: none;
    color: inherit;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.hero-btn-primary {
    background-color: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
}

.hero-btn-primary:hover {
    background-color: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
    color: white;
}

.hero-btn-outline {
    background-color: white;
    color: var(--brand-red);
    border-color: var(--brand-red);
}

.hero-btn-outline:hover {
    background-color: var(--brand-red);
    color: white;
}

/* Post Grid / Recent Posts */
.post-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.2s;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.section-header {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
    color: #2C3E50;
    margin-top: 2rem;
}

/* Mobile Hero Fixes */
@media (max-width: 768px) {
    .hero {
        align-items: flex-end;
        min-height: 400px;
    }

    .hero-overlay {
        display: none;
    }

    .hero-bg {
        transform: scale(2.0);
        transform-origin: center center;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 6rem 1.5rem 3rem 1.5rem;
        background: linear-gradient(to top, #333 0%, rgba(51, 51, 51, 0.9) 40%, rgba(51, 51, 51, 0) 100%);
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }
}