/* ============================================ */
/* HERO & DIRECTORY HEADER                      */
/* ============================================ */
.hero-directory {
    position: relative;
    width: 100%;
    background-color: var(--primary) !important;
    background: linear-gradient(rgba(0, 0, 0, 0.04),
            rgba(0, 0, 0, 0.9)),
        url("../../images/banners/main1.webp") no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink);
    padding: 2rem;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    justify-content: center;
    z-index: 2;
}

.join-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin-top: -1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--accent);
    color: var(--ink);

    /* Shaping */
    border-radius: 50px;
    /* Pill shape */
    border: 2px solid transparent;

    /* Smoothness */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover State */
.join-button:hover {
    background-color: transparent;
    color: var(--accent2);
    border-color: var(--accent2);
    transform: translateY(-3px);
    /* Lifts the button */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Active State (When clicked) */
.join-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================ */
/* Container & Grid                             */
/* ============================================ */
.home-content {
    max-width: var(--maxw);
    margin: 1rem auto 2rem;
    padding: 0 1rem;
}

.page-title h2 {
    padding-bottom: 2rem;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent3);
}

.container-grid {
    display: flex;
    flex-direction: column;
    /* Stacked on mobile */
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* ============================================ */
/* Cards                                        */
/* ============================================ */
.card-content {
    flex: 1;
    /* This forces the content to grow and fill the parent section */
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--ink2);
    border-radius: 8px;
    overflow: hidden;
}

.card-title {
    margin: 0;
    padding: .75rem 1rem;
    background-color: var(--primary);
    background: linear-gradient(to right, var(--accent1), var(--accent));
    color: #fff;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-inside,
.weather-info {
    flex: 1;
}

.card-inside {
    padding: 0 2rem;
}

/* Remove margins so background colors touch the <hr> lines */
.card-inside p {
    font-size: 0.9rem;
    margin: 0;
    /* Removes the gap between stripes */
    padding: 12px 1rem;
    /* Adds space back inside the stripe */
}

/* Target the even paragraphs */
/* Zebra Stripped */
.card-inside p:nth-of-type(even) {
    background-color: #f9f9f9;
}

.card-inside hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
    /* Ensures no white space between p and hr */
}

/* ============================== */
/* weather Card style             */
/* ============================== */
.weather-info {
    padding: 0 2rem;
    /* Matches card-inside padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left Side: Icon and Description */
.weather-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    /* Takes up equal space */
    /* Create a soft halo background */
    /* I got this from the internet */
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

#weather-icon {
    width: 100px;
    /* Increase size */
    height: auto;
    /* This creates a soft glow around the icon shape itself */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

#desc {
    margin: 0;
    font-size: 0.8rem;
    text-transform: capitalize;
}

/* Right Side: City, Temp, and Humidity */
.weather-right {
    flex: 1;
    text-align: right;
    /* Aligns text to the right edge */
}

#city {
    font-size: 1rem;
    margin-bottom: 5px;
}

#current-temp {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 2px 0;
}

#humidity {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================= */
/* Forecast card style           */
/* ============================= */
.forecast-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.forecast-day {
    font-weight: bold;
    min-width: 50px;
}

.forecast-temp {
    font-weight: 900;
    color: var(--accent3);
}

/* Ensure images don't overflow */
.forecast-row img {
    width: 45px;
    height: 45px;
}

/* ============================================ */
/* SPOTLIGHT CARD STYLES                        */
/* ============================================ */

.spotlight-section {
    background: var(--accent);
    border-top: 1px solid var(--ink2);
    margin-bottom: -2rem;
}

.spotlight-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.spotlight-card {
    background: var(--ink);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 8px solid var(--border);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Hover State */
.spotlight-card:hover {
    /* background-color: var(--accent); */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* perspective: 1000px; */
    /* filter: hue-rotate(150deg); */
}

.spotlight-card:hover .spotlight-name {
    border-bottom: 1px solid #9c8e8e;
}


/* Tier-specific colors */
.spotlight-card.gold {
    border-left-color: #FFD700;
}

.spotlight-card.silver {
    border-left-color: #C0C0C0;
}

.spotlight-name {
    margin-top: 0;
    color: var(--accent3);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.spotlight-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.spotlight-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.spotlight-info p {
    margin: 3px 0;
    font-size: 0.85rem;
}

.spotlight-info a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

/* ============================================ */
/* BADGES & RESPONSIVENESS                      */
/* ============================================ */
@media (min-width: 768px) {
    .view-toggle {
        display: block;
        margin: 1rem auto;
        text-align: center;
    }

    .hero-directory {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 5rem 6rem 2rem;
        /* Shorthand for top, sides, bottom */
    }

    .join-button {
        margin-top: 4rem;
    }

    .hero-text {
        text-align: left;
    }

    .hero-text h1 {
        line-height: 0.9;
    }

    /* This line made the cards the same height */
    .container-grid>section {
        display: flex;
        flex-direction: column;
    }

    .container-grid {
        display: grid;
        grid-template-columns: 5fr 1fr 1fr;
        gap: 1rem;
    }

    .spotlight-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 1rem;
        padding: 4rem;
    }
}