/* ============================================================
   LATEST REPO HERO — NEW LAYOUT
   ============================================================ */

.repo-hero-card {
    position: relative; /* allows icon in top-right */
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--frame-border);
    background: var(--card-bg);
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 14px;

    transition: background 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.2s ease;
}

.repo-hero-card:hover {
    background: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

/* GitHub icon — circle + top-right */
.repo-hero-thumb {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 28px;
    height: 28px;
    border-radius: 50%; /* circle */
    object-fit: cover;
    opacity: 0.9;
}

/* Info block */
.repo-hero-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding-right: 55px; /* space for icon */
}

.repo-hero-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.repo-hero-desc {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

/* Date under description */
.repo-hero-date {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}


.view-more-wrapper {
    text-align: right;
}

.view-more-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--frame-border);
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    box-shadow: var(--card-shadow);

    transition: background 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.2s ease;
}

.view-more-btn:hover {
    background: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}






.blog-hero-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--frame-border);
    background: var(--card-bg);
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 14px;

    transition: background 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.2s ease;
}

.blog-hero-card:hover {
    background: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

/* Thumbnail */
.blog-hero-thumb {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Info block */
.blog-hero-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.blog-hero-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.blog-hero-excerpt {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

/* Date under excerpt */
.blog-hero-date {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}





/* ============================================================
   SUBSCRIBE CTA SECTION — DISTINCT DESIGN
   ============================================================ */

.subscribe {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscribe__copy {
    margin: 20px;
    text-align: left;
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.8;
    transition: color 0.4s ease;
}

.form {
    margin: 0 auto 25px auto;
}

/* Desktop stays EXACTLY the same */
.form__email {
    background: var(--entry-color);
    padding: 20px 25px;
    border-radius: 5px;
    border: 1px solid var(--frame-border);
    width: 431px;
    font-size: 18px;
    color: var(--text-color);
}

.form__email:focus {
    outline: 1px solid var(--text-color);
}

.form__button {
    background: var(--text-color);
    padding: 10px;
    border: none;
    width: 244px;
    height: 65px;
    border-radius: 5px;
    font-size: 18px;
    color: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form__button:hover {
    background: var(--text-color);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
}

/* -------------------------------------- */
/* 📱 MOBILE ONLY — layout changes here */
/* -------------------------------------- */

@media (max-width: 600px) {

    .subscribe__copy {
        text-align: center;
        font-size: 16px;
        margin: 15px;
    }

    .form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Input becomes full width ONLY on mobile */
    .form__email {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }

    /* Button becomes full width ONLY on mobile */
    .form__button {
        width: 100%;
        height: 55px;
        font-size: 16px;
    }
}


@media (max-width: 600px) {

    .form {
        display: flex;
        flex-direction: column; /* stack input + button ONLY on mobile */
        align-items: center;    /* center them */
        width: 100%;
        gap: 15px;
    }

    .form__email {
        width: 100%;            /* full width ONLY on mobile */
        max-width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }

    .form__button {
        width: 100%;            /* full width ONLY on mobile */
        height: 55px;
        font-size: 16px;
    }
}




/* GAME CARD WRAPPER */

.games-scroller-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 60px;
}

/* ============================
   HORIZONTAL SCROLLER
   ============================ */
.games-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;                 /* allows overflow */
    padding: 10px 0;
    white-space: nowrap;     /* prevents wrapping */
    scrollbar-width: none;   /* Firefox */
}

.games-scroller::-webkit-scrollbar {
    display: none;           /* Chrome */
}

/* ============================
   GAME CARD
   ============================ */
.game-card {
    flex: 0 0 240px;         /* fixed width */
    min-width: 240px;        /* ensures overflow */
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid #222;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card a {
    text-decoration: none !important;
    color: inherit;
    display: block; /* prevents weird underline behavior */
}


.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* ============================
   GAME CARD TEXT STYLE — THEME MATCHED + CENTERED
   ============================ */
.game-card .album-overlay {
    padding: 12px;
    background: var(--card-bg);              /* matches card surface */
    text-align: center;                      /* centered text */
    border-top: 1px solid var(--frame-border);
}

/* Title */
.game-card .album-overlay h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);                /* theme text color */
    letter-spacing: 0.3px;
}

/* Subtitle */
.game-card .album-overlay p {
    font-size: 0.8rem;
    color: var(--category-color);            /* muted green-gray */
    opacity: 0.9;
    margin: 0;
    line-height: 1.3;
}



/* ============================
   SCROLL BUTTONS
   ============================ */
.scroll-btn {
    flex: 0 0 auto;          /* prevents stretching */
    background: #222;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: background 0.2s ease;
}

.scroll-btn:hover {
    background: #333;
}




.section-separator {
    width: 100%;
    height: 1px;
    background: var(--frame-border);     /* greenish-gray border */
    opacity: 0.45;                       /* subtle, premium */
    margin: 40px 0 30px;                 /* spacing between sections */
}










