﻿/* ==================== INDEX PAGE STYLES ==================== */

/* Index Hero Section */
.index-hero {
    background: linear-gradient(135deg, #0a5f59 0%, #084a45 100%);
    padding: 140px 0 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.index-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="index-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23index-pattern)"/></svg>');
    opacity: 0.3;
}

.index-hero-content {
    position: relative;
    z-index: 2;
}

.index-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.index-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Index Content */
.index-content {
    padding: 80px 0;
    background: #f8fffe;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 95, 89, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 95, 89, 0.05);
    position: relative;
}

.post-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(10, 95, 89, 0.2);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a5f59 0%, #e4a520 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover::before {
    opacity: 1;
}

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 100%);
    transition: transform 0.3s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 95, 89, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.post-category {
    background: linear-gradient(135deg, #0a5f59 0%, #e4a520 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 95, 89, 0.3);
    color: white;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a5f59;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #e4a520;
}

.post-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0a5f59;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(10, 95, 89, 0.05);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(10, 95, 89, 0.1);
}

.post-read-more:hover {
    color: white;
    background: linear-gradient(135deg, #0a5f59 0%, #e4a520 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(10, 95, 89, 0.3);
}

/* Pagination */
.posts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.pagination li {
    display: flex;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: #0a5f59;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(10, 95, 89, 0.1);
}

.pagination-link:hover,
.pagination-link.current {
    background: #0a5f59;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 95, 89, 0.3);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 95, 89, 0.1);
}

.no-posts i {
    font-size: 4rem;
    color: #e4a520;
    margin-bottom: 20px;
}

.no-posts h3 {
    color: #0a5f59;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.no-posts p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .index-hero h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .index-hero {
        padding: 100px 0 60px;
    }
    
    .index-hero h1 {
        font-size: 2rem;
    }
    
    .index-content {
        padding: 60px 0;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .index-hero h1 {
        font-size: 1.8rem;
    }
    
    .index-hero p {
        font-size: 1rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
