/* Blog Styles - Mobile First */
:root {
    --blog-max-width: 800px;
    --blog-font-size: 16px;
    --blog-line-height: 1.6;
    --blog-padding: 1rem;
    --blog-heading-color: #2D3748;
    --blog-text-color: #4A5568;
    --blog-link-color: #3182CE;
    --blog-code-bg: #F7FAFC;
    --blog-quote-bg: #EDF2F7;
    --blog-border-color: #E2E8F0;
}

/* Blog Container and Layout */
.category-section {
    max-width: 100%;
    margin: 1rem auto;
    padding: 0 var(--blog-padding);
    text-align: left;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.3;
}

.blog-meta {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.blog-meta span {
    margin: 0 0.25rem;
}

/* Blog Content */
.theme-card.blog-content {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: none !important;
    cursor: default;
}

.theme-card.blog-content:hover {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-content {
    font-size: var(--blog-font-size);
    line-height: var(--blog-line-height);
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    height: auto;
    margin: -1rem -1rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

/* Headings */
.blog-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    color: var(--text-color);
    border-bottom: 2px solid rgba(var(--main-color-rgb), 0.1);
}

/* Topic Table Styles */
.topic-table {
    margin: 1rem 0;
    width: 100%;
    text-align: left;
}

.topic-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-align: left;
}

.topic-row .topic-name,
.topic-row .topic-weight,
.topic-row .topic-description {
    text-align: left;
}

.topic-name {
    font-weight: 600;
    color: var(--text-color);
}

.topic-weight {
    color: var(--main-color);
    font-weight: 500;
}

.topic-description {
    color: var(--text-light);
}

@media (min-width: 768px) {
    .topic-row {
        grid-template-columns: 2fr 1fr 3fr;
        gap: 1rem;
        align-items: center;
    }
}

/* Phrase Table */
.phrase-table {
    margin: 1rem 0;
    border-spacing: 0;
    width: 100%;
    text-align: left;
}

.phrase-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-align: left;
}

.phrase-row:nth-child(odd) {
    background: var(--bg-light);
}

.phrase-row:nth-child(even) {
    background: rgba(var(--main-color-rgb), 0.03);
}

.phrase-row:hover {
    background: rgba(var(--main-color-rgb), 0.08);
}

.phrase-english {
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
}

.phrase-gaelic {
    font-weight: 500;
    color: var(--main-color);
    text-align: left;
}

.phrase-pronunciation {
    color: var(--text-light);
    font-style: italic;
    text-align: left;
}

/* Blog Tags */
.blog-tags {
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--main-color-rgb), 0.08);
    color: var(--main-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag:hover {
    background: rgba(var(--main-color-rgb), 0.12);
    transform: translateY(-1px);
}

/* Tip Box */
.tip-box {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tip-box h3 {
    color: #2D3748;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(107, 70, 193, 0.2);
}

.tip-box p {
    margin-bottom: 0;
}

/* Blog Content Styles */
.blog-content h3 {
    font-size: 1.4rem;
    color: var(--blog-heading-color);
    margin: 1rem 0 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: justify;
    hyphens: auto;
}

.blog-content a {
    color: var(--blog-link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.blog-content a:hover {
    border-color: var(--blog-link-color);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

/* Utility Classes */
.intro-paragraph {
    font-size: calc(var(--blog-font-size) * 1.1);
    line-height: calc(var(--blog-line-height) * 1.1);
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

/* Desktop Styles */
@media (min-width: 768px) {
    :root {
        --blog-font-size: 18px;
        --blog-line-height: 1.8;
        --blog-padding: 1.5rem;
    }

    .category-section {
        max-width: var(--blog-max-width);
        margin: 2rem auto;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .theme-card.blog-content {
        padding: 2.5rem;
        margin: 2rem auto;
    }

    .blog-featured-image {
        margin: -2.5rem -2.5rem 2rem;
        border-radius: 12px 12px 0 0;
    }

    .blog-content h2 {
        font-size: 1.8rem;
        margin: 3rem 0 1.5rem;
    }

    .phrase-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1rem 1.5rem;
        align-items: center;
    }

    .intro-paragraph {
        font-size: calc(var(--blog-font-size) * 1.2);
        line-height: calc(var(--blog-line-height) * 1.1);
        margin-bottom: 2rem;
    }
} 


.blog-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.blog-card {
    display: block;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 6px 15px rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.blog-card-content {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.category-title {
    color: var(--main-color);
    border-bottom: 2px solid rgba(var(--main-color-rgb), 0.1);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--main-color-rgb), 0.1);
    color: var(--main-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 1rem;
}

.blog-tags {
    margin-top: 1rem;
}

/* Blog Content Styles */
.blog-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    text-align: left;
}

.blog-content li {
    text-align: left;
}

.key-takeaways li {
    list-style-type: none;
}

.key-takeaways ul {
    list-style-type: none;
}

@media (max-width: 768px) {
    .blog-card-image {
        height: 200px;
    }
}