/* BLOG PAGE STYLES */

/* PAGE HEADER */
.page-header {
    padding: 100px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.page-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* FILTER SECTION */
.blog-filters {
    padding: 60px 0 30px;
}

.filter-container {
    text-align: center;
}

.filter-container h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background-color: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

/* FEATURED POST */
.featured-post {
    padding: 30px 0 60px;
}

.featured-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.featured-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%;
    overflow: hidden;
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
}

.featured-card-content {
    padding: 30px;
}

.featured-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--background);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.featured-excerpt {
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-author {
    display: flex;
    align-items: center;
}

.featured-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.post-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    opacity: 0.8;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* BLOG POSTS GRID */
.blog-posts {
    padding: 0 0 80px;
}

.blog-posts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    overflow: hidden;
}

.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-indicator i {
    color: var(--primary);
    font-size: 1.5rem;
}

.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--background);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-excerpt {
    margin-bottom: 20px;
    line-height: 1.7;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.post-author {
    display: flex;
    align-items: center;
}

.post-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* NEWSLETTER */
.newsletter {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
}

.newsletter h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 4px 0 0 4px;
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    background-color: var(--primary);
    color: var(--background);
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    opacity: 0.9;
}

.form-message {
    margin-top: 15px;
    min-height: 20px;
}

/* BLOG POST FULL VIEW */
.blog-post-full {
    padding: 50px 0;
}

.post-header {
    margin-bottom: 40px;
}

.post-header-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--background);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.post-header-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.post-header-meta {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.post-header-author {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.post-header-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.post-header-author-info {
    display: flex;
    flex-direction: column;
}

.post-header-author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.post-header-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.post-share {
    display: flex;
    align-items: center;
}

.post-share span {
    margin-right: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--background);
}

.post-featured-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.post-content-full {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.post-content-full p {
    margin-bottom: 20px;
}

.post-content-full h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}

.post-content-full h3 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
}

.post-content-full blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid var(--primary);
    background-color: rgba(255, 255, 255, 0.03);
    font-style: italic;
}

.post-content-full ul, .post-content-full ol {
    margin: 20px 0;
    padding-left: 20px;
}

.post-content-full li {
    margin-bottom: 10px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.post-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-tag:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-nav-link {
    max-width: 45%;
}

.post-nav-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.post-nav-title {
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.post-nav-link:hover .post-nav-title {
    color: var(--primary);
}

/* EMPTY STATE */
.empty-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .featured-title {
        font-size: 2rem;
    }
    
    .post-header-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .page-intro {
        font-size: 1rem;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .featured-image-container {
        padding-bottom: 60%;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .post-header-title {
        font-size: 2rem;
    }
    
    .post-header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .submit-btn {
        border-radius: 4px;
        padding: 12px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .post-nav-link {
        max-width: 100%;
    }
}