/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding-top: 80px;
    padding-bottom: 4rem;
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-family: 'Creepster', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-style: italic;
}

/* Search Bar */
.search-container {
    margin-bottom: 3rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--text-gray);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-button {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-chip {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-chip:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.category-chip.active {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* Blog Content Layout */
.blog-content {
    padding: 4rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* Blog Cards */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    min-height: 200px;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.blog-thumbnail {
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-shrink: 0;
    width: 200px;
}

.thumbnail-image {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.blog-category {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-time {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.blog-title {
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    white-space: normal;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.blog-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-button {
    background: var(--gradient-secondary);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post-thumbnail {
    font-size: 2rem;
    flex-shrink: 0;
}

.popular-post-content h4 {
    margin-bottom: 0.5rem;
}

.popular-post-content h4 a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-post-content h4 a:hover {
    color: var(--primary-color);
}

.popular-post-views {
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* Featured Series */
.featured-series {
    text-align: center;
}

.featured-series h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.featured-series p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.series-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.series-link:hover {
    color: var(--accent-color);
}

/* Subscribe Form */
.subscribe-form p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subscribe-form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subscribe-form-content input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--darker-bg);
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.subscribe-form-content input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscribe-form-content button {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form-content button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.subscribe-note {
    color: var(--text-gray);
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-link:hover {
    color: var(--primary-color);
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 3rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .search-input {
        width: 100%;
        text-align: center;
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .category-chip {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .blog-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .blog-thumbnail {
        padding: 1rem;
        width: 100%;
    }
    
    .thumbnail-image {
        font-size: 3rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-title a {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .category-chip {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .blog-title a {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-excerpt {
        -webkit-line-clamp: 4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
} 