/* ========================================
   SECTION TITLE
   ======================================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 5%;
    color: white;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-title p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ========================================
   SEARCH & FILTERS
   ======================================== */
.search-filter-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.tag-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-label {
    font-weight: 600;
    color: #333;
}

.tag-filter {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #555;
}

.tag-filter:hover {
    background: #e8e8e8;
}

.tag-filter.active {
    background: #6366f1;
    color: white;
    border-color: #667eea;
}

/* ========================================
   BLOG GRID
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 650px;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.blog-tag {
    padding: 5px 12px;
    background: #6366f1;
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.blog-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}

.blog-date {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   NO RESULTS
   ======================================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.no-results i {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

/* ========================================
   ARTICLE
   ======================================== */
.article-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 30px !important;
    margin-bottom: 40px;
}

.article-header {
    position: relative;
    height: 500px;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-header-icon {
    font-size: 120px;
    color: white;
}

.article-content {
    padding: 40px;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    padding: 8px 16px;
    background: #6366f1;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
}

.article-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.meta-item i {
    color: #667eea;
}

.article-excerpt {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 5px;
    font-style: italic;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    margin-top: 30px;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: #6366f1;
    border-radius: 3px;
}

.article-body h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    margin-top: 25px;
    font-weight: 700;
}

.article-body ul,
.article-body ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-body strong {
    color: #667eea;
    font-weight: 700;
}

.article-body blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 5px solid #667eea;
    font-style: italic;
    color: #555;
}

.article-body code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #e83e8c;
}

.article-body pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* ========================================
   INFO BOXES
   ======================================== */
.info-box {
    padding: 20px;
    margin: 25px 0;
    border-radius: 10px;
    border-left: 5px solid;
}

.info-box.tip {
    background: #e8f5e9;
    border-color: #4caf50;
}

.info-box.warning {
    background: #fff3e0;
    border-color: #ff9800;
}

.info-box.important {
    background: #ffebee;
    border-color: #f44336;
}

.info-box-title {
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box.tip .info-box-title {
    color: #4caf50;
}

.info-box.warning .info-box-title {
    color: #ff9800;
}

.info-box.important .info-box-title {
    color: #f44336;
}

/* ========================================
   IMAGES
   ======================================== */
.article-image {
    width: 100%;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   RELATED POSTS
   ======================================== */
.related-posts {
    margin-top: 60px;
}

.related-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.related-image {
    width: 100%;
    height: 180px;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 50px;
}

.related-content {
    padding: 20px;
}

.related-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.related-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.related-card-date {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   SHARE BUTTONS
   ======================================== */
.share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.share-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy {
    background: #667eea;
}

.mt-150 {
    margin-top: 150px !important;
}

/* ========================================
   MEDIA QUERIES - TABLET (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    /* Article */
    .article-container {
        border-radius: 10px;
    }

    .article-header {
        height: 250px;
    }

    .article-header-icon {
        font-size: 80px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .article-excerpt {
        font-size: 1rem;
        padding: 15px;
    }

    .article-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .article-body h2 {
        font-size: 1.4rem;
        margin-top: 20px;
        padding-left: 15px;
    }

    .article-body h3 {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    .article-body ul,
    .article-body ol {
        margin-left: 20px;
    }

    .article-body p {
        margin-bottom: 15px;
    }

    .article-meta {
        gap: 15px;
    }

    .article-tags {
        gap: 8px;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        border-radius: 10px;
    }

    .blog-image {
        height: 180px;
        font-size: 50px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    /* Related posts */
    .related-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-card {
        border-radius: 10px;
    }

    .related-image {
        height: 150px;
        font-size: 40px;
    }

    .related-content {
        padding: 15px;
    }

    .related-card-title {
        font-size: 1.1rem;
    }

    .related-card-excerpt {
        font-size: 0.9rem;
    }

    /* Search */
    .search-filter-container {
        padding: 20px;
        border-radius: 10px;
    }

    .search-input {
        min-width: 100%;
        padding: 12px 15px;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .tag-filters {
        justify-content: center;
    }

    /* Share buttons */
    .share-buttons {
        gap: 10px;
    }

    .share-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .back-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========================================
   MEDIA QUERIES - MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {

    .article-title {
        font-size: 1.4rem;
    }

    .article-body {
        font-size: 0.9rem;
    }

    .article-body h2 {
        font-size: 1.3rem;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }

    .article-content {
        padding: 15px;
    }

    .related-content {
        padding: 12px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }
}
