/* Blog-specific styles for Space Run */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-logo img {
    width: 60px;
    height: 60px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Blog Content Section */
.blog-content-section {
    padding: 60px 24px;
    background: var(--white);
}

.blog-content-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin-bottom: 40px;
}

.blog-article h2 {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
}

.blog-article h3 {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-article h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.blog-article p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.125rem;
    line-height: 1.8;
}

.blog-article ul,
.blog-article ol {
    margin-bottom: 20px;
    margin-left: 24px;
    color: var(--text-dark);
}

.blog-article li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.blog-article a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: medium;
}

.blog-article a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

.blog-article strong {
    font-weight: 600;
    color: var(--primary-purple);
}

.blog-article blockquote {
    border-left: 4px solid var(--primary-orange);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-light);
}

/* Blog Article Images */
.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.blog-article .img-container-left {
    float: left;
    margin: 0 24px 16px 0;
    max-width: 45%;
}

.blog-article .img-container-right {
    float: right;
    margin: 0 0 16px 24px;
    max-width: 45%;
}

.blog-article .img-container-center {
    display: block;
    margin: 32px auto;
    max-width: 70%;
    text-align: center;
}

.blog-article .img-left {
    width: 100%;
    margin: 0;
}

.blog-article .img-right {
    width: 100%;
    margin: 0;
}

.blog-article .img-center {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.blog-article .img-small {
    max-width: 600px;
}

.blog-article .img-caption {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 8px;
}

.blog-article .img-caption a {
    color: var(--primary-orange);
    text-decoration: underline;
}

.blog-article .clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Article Inline CTA Button */
.article-cta-container {
    text-align: center;
    margin: 32px 0;
}

.article-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 32px;
    background: var(--primary-orange);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    box-shadow: #e6870a9d;
}

.article-cta-button:hover {
    background: #e6870a9d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    text-decoration: none;
    color: var(--white);
}

/* CTA Section */
.blog-cta-section {
    margin-top: 40px;
}

.cta-subscribe-box {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.cta-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary-orange);
}

.cta-subscribe-box h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.cta-subscribe-box p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button,
.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover,
.cta-button-large:hover {
    background: #E6850A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.cta-button-large {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 1.125rem;
}

/* Events List Page */
.main-content {
    flex: 1;
    padding: 60px 24px;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.state-icon-large {
    text-align: center;
    margin-bottom: 24px;
}

.state-icon-large i {
    font-size: 64px;
    color: var(--primary-orange);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

.events-container {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

.clear-filters-btn {
    padding: 12px 20px;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
}

.events-count {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.events-count strong {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Events Table */
.table-wrapper {
    overflow-x: auto;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.events-table thead {
    background: var(--background-light);
}

.events-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-purple);
    border-bottom: 2px solid var(--border-light);
}

.events-table th i {
    margin-right: 8px;
    color: var(--primary-orange);
}

.events-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.events-table tbody tr:hover {
    background-color: var(--background-light);
}

.events-table td {
    padding: 16px;
    color: var(--text-dark);
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.event-link:hover {
    background: var(--primary-purple);
    transform: translateY(-1px);
}

.no-events {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.125rem;
}

.no-events i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--primary-orange);
}

/* Back to Blog */
.back-to-blog {
    margin-top: 32px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--background-light);
    color: var(--text-dark);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border-light);
}

.back-link:hover {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

/* Blog Index Page */
.blog-index-section {
    padding: 60px 24px;
    background: var(--white);
}

.blog-index-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-index-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-index-header h1 {
    font-size: 3rem;
    color: var(--primary-purple);
    margin-bottom: 16px;
    font-weight: 700;
}

.blog-index-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    border-color: var(--primary-orange);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card i {
    font-size: 48px;
    color: var(--primary-orange);
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 12px;
    font-weight: 600;
}

.category-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.category-section-title {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .blog-article {
        padding: 24px;
    }

    .blog-article h2 {
        font-size: 1.5rem;
    }

    .blog-article p {
        font-size: 1rem;
    }

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

    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: 100%;
    }

    .clear-filters-btn {
        width: 100%;
        justify-content: center;
    }

    .events-table {
        font-size: 14px;
    }

    .events-table th,
    .events-table td {
        padding: 12px 8px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .blog-index-header h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-item {
        padding: 6px 8px;
    }

    /* Mobile: Stack images, no float */
    .blog-article .img-container-left,
    .blog-article .img-container-right {
        float: none;
        margin: 16px auto;
        max-width: 100%;
    }

    .blog-article .img-container-center {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .events-table thead {
        display: none;
    }

    .events-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        padding: 16px;
    }

    .events-table td {
        display: block;
        padding: 8px 0;
        border: none;
    }

    .events-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
        color: var(--primary-purple);
    }
}
