/* ===========================
   Blog Styles for WordleDay
   =========================== */

/* Header overrides for blog pages */
header {
    background-color: #13141c;
    border-bottom: 2px solid #57ac57;
}

header .header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
}

header .header__logo {
    width: auto;
    max-width: 155px;
    padding: 8px 0;
    flex-shrink: 0;
}

header .menu-header__link {
    color: #e8e9ef;
}

header .menu-header__link:hover {
    color: #57ac57;
}

header .menu-header__link:before {
    border-top-color: #57ac57;
}

.blog-nav-logo {
    display: block;
    padding: 8px 0;
}

.blog-nav-logo img {
    height: 40px;
    width: auto;
    display: block;
    max-width: 155px;
}

/* Blog Breadcrumbs */
.blog-breadcrumbs {
    background-color: #f5f5f0;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e0;
    font-size: 13px;
    color: #666;
}

.blog-breadcrumbs a {
    color: #57ac57;
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-breadcrumbs span {
    margin: 0 6px;
    color: #aaa;
}

/* ===========================
   Blog Index Page
   =========================== */

.blog-hero {
    background: linear-gradient(135deg, #13141c 0%, #2b2e3a 100%);
    padding: 60px 0 50px;
    text-align: center;
    color: #fff;
}

.blog-hero__title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1.1;
}

.blog-hero__title span {
    color: #57ac57;
}

.blog-hero__subtitle {
    font-size: 18px;
    color: #a0a4b8;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.5;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px 0;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.blog-card__image {
    background: linear-gradient(135deg, #57ac57, #3d7a3d);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
}

.blog-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08);
}

.blog-card__tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 1;
}

.blog-card__body {
    padding: 22px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #57ac57;
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 19px;
    font-weight: 700;
    color: #13141c;
    margin: 0 0 10px;
    line-height: 1.35;
}

.blog-card:hover .blog-card__title {
    color: #57ac57;
}

.blog-card__excerpt {
    font-size: 14px;
    color: #5a5f75;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9a9fb5;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: auto;
}

.blog-card__read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__read-more {
    color: #57ac57;
    font-weight: 700;
    font-size: 13px;
}

/* Featured card (spans 2 columns) */
.blog-card--featured {
    grid-column: span 2;
    flex-direction: row;
}

.blog-card--featured .blog-card__image {
    width: 45%;
    min-width: 45%;
    height: auto;
    font-size: 80px;
}

.blog-card--featured .blog-card__body {
    padding: 28px;
}

.blog-card--featured .blog-card__title {
    font-size: 24px;
}

/* ===========================
   Blog Post Page
   =========================== */

.blog-post-hero {
    background-color: #13141c;
    background-size: cover;
    background-position: center;
    padding: 50px 0 40px;
    position: relative;
}

.blog-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19,20,28,0.85) 0%, rgba(43,46,58,0.78) 100%);
    z-index: 0;
}

.blog-post-hero .container {
    position: relative;
    z-index: 1;
}

.blog-post-hero__category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #57ac57;
    margin-bottom: 14px;
}

.blog-post-hero__title {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
    max-width: 800px;
}

.blog-post-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #8a8fa5;
    flex-wrap: wrap;
}

.blog-post-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article content */
.blog-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 20px 60px;
}

.blog-article p {
    font-size: 17px;
    line-height: 1.8;
    color: #2b2e3a;
    margin: 0 0 22px;
}

.blog-article h2 {
    font-size: 28px;
    font-weight: 900;
    color: #13141c;
    margin: 44px 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #57ac57;
}

.blog-article h3 {
    font-size: 21px;
    font-weight: 700;
    color: #13141c;
    margin: 30px 0 12px;
}

.blog-article ul, .blog-article ol {
    padding-left: 26px;
    margin: 0 0 22px;
}

.blog-article li {
    font-size: 17px;
    line-height: 1.75;
    color: #2b2e3a;
    margin-bottom: 8px;
}

.blog-article a {
    color: #57ac57;
    text-decoration: none;
    border-bottom: 1px solid rgba(87,172,87,0.3);
    transition: border-color 0.2s;
}

.blog-article a:hover {
    border-bottom-color: #57ac57;
}

.blog-article blockquote {
    border-left: 4px solid #57ac57;
    background: #f5fbf5;
    padding: 18px 22px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-size: 17px;
    color: #3a4a3a;
    line-height: 1.7;
}

.blog-article strong {
    color: #13141c;
    font-weight: 700;
}

/* Info box / callout */
.blog-callout {
    background: #f0faf0;
    border: 1px solid #c3e6c3;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0;
}

.blog-callout__title {
    font-size: 15px;
    font-weight: 700;
    color: #2d6a2d;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-callout p {
    margin: 0;
    font-size: 15px;
    color: #3a5a3a;
}

/* Word tiles display */
.wordle-tiles {
    display: flex;
    gap: 6px;
    margin: 18px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.tile {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    border-radius: 4px;
    color: #fff;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tile--green { background-color: #57ac57; }
.tile--yellow { background-color: #f3c237; }
.tile--grey { background-color: #a4aec4; }

/* Table */
.blog-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.blog-table th {
    background: #13141c;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
}

.blog-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #eee;
    color: #2b2e3a;
}

.blog-table tr:nth-child(even) td {
    background: #f9f9f9;
}

.blog-table tr:hover td {
    background: #f0faf0;
}

/* CTA box */
.blog-cta {
    background: linear-gradient(135deg, #57ac57, #3d8f3d);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
    color: #fff;
}

.blog-cta__title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 10px;
}

.blog-cta__text {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 22px;
}

.blog-cta__btn {
    display: inline-block;
    background: #fff;
    color: #2d6a2d;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.blog-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-bottom: none;
}

/* Related posts */
.blog-related {
    background: #f8f8f5;
    padding: 50px 0;
    border-top: 1px solid #eee;
}

.blog-related__title {
    font-size: 24px;
    font-weight: 900;
    color: #13141c;
    margin: 0 0 28px;
    text-align: center;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card--featured {
        grid-column: span 2;
    }

    .blog-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .blog-hero__title {
        font-size: 30px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .blog-card--featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .blog-card--featured .blog-card__image {
        width: 100%;
        height: 160px;
    }

    .blog-post-hero__title {
        font-size: 26px;
    }

    .blog-article h2 {
        font-size: 22px;
    }

    .blog-article p, .blog-article li {
        font-size: 16px;
    }

    .blog-related__grid {
        grid-template-columns: 1fr;
    }

    header .menu-header {
        display: none;
    }
}

@media (max-width: 479px) {
    .blog-hero {
        padding: 40px 0 30px;
    }

    .blog-post-hero__title {
        font-size: 22px;
    }

    .blog-cta {
        padding: 24px 18px;
    }
}
