/* Blog styles — Light Premium Theme (Napoles Style) */

:root {
    --blog-navy: #0a192f;
    --blog-text: #334155;
    --blog-title: #0f172a;
    --blog-accent: #6366f1;
    --blog-bg-alt: #f1f5f9;
}

.blog-hero {
    padding: 120px 0 60px;
    background: #fff;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--blog-title);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-subtitle {
    color: var(--blog-text);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Search & Filters */
.blog-controls {
    margin-top: -30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.controls-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
}

.search-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 20px 14px 50px;
    color: var(--blog-title);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    outline: none;
    border-color: var(--blog-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.sort-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.sort-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--blog-title);
    padding: 10px 15px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: var(--blog-accent);
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--blog-accent);
}

.card-category {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--blog-navy);
}

.card-content {
    background: #fff;
    padding: 24px;
}

.card-date {
    color: #94a3b8;
}

.card-title {
    color: var(--blog-title);
    font-weight: 700;
}

.card-excerpt {
    color: var(--blog-text);
}

/* Article Detail */
.article-page {
    background: #fff;
    padding-bottom: 100px;
}

.article-hero {
    padding: 140px 0 60px;
    background: #f8fafc;
    text-align: center;
    margin-bottom: 60px;
}

.article-title {
    color: var(--blog-title);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    color: #64748b;
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.meta-item i {
    color: var(--blog-accent);
    margin-right: 6px;
}

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

.article-body {
    color: var(--blog-text);
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-main-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    float: left;
    margin-right: 40px;
    margin-bottom: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    clear: both;
}

@media (max-width: 850px) {
    .article-main-image {
        float: none;
        margin: 0 0 30px 0;
        max-width: 100%;
        border-radius: 16px;
    }
    
    .article-hero {
        padding: 120px 0 40px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
}

.share-links span {
    color: #64748b;
}

/* Pagination */
.page-num {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--blog-title);
}

/* No Results */
.no-results h3 {
    color: var(--blog-title);
}

/* Responsive fixes */
@media (max-width: 1200px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { 
    .blog-grid { grid-template-columns: 1fr; }
    .blog-hero h1 { font-size: 2.2rem; }
}
