/* Info Page Styles */
.info-page {
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
    background: #f9fafb;
}

.info-page .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    color: #9ca3af;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #111827;
}

.search-input::placeholder {
    color: #9ca3af;
}

.filter-btn {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Articles List */
.articles-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e5e7eb;
}

.article-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-image-placeholder::after {
    content: '⚡';
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.article-content {
    padding: 20px 24px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.article-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
}

.article-meta svg {
    width: 16px;
    height: 16px;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-action-btn:hover {
    color: #3b82f6;
}

.article-action-btn svg {
    width: 20px;
    height: 20px;
}

.more-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
}

.more-btn:hover {
    color: #111827;
}

/* ========== Article Full Page ========== */
.article-page {
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
    background: #f9fafb;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 32px;
}

.back-button:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.back-button i {
    font-size: 16px;
}

.article-full {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.article-full-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-full-header {
    padding: 40px 40px 24px 40px;
}

.article-full-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.article-full-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.article-full-meta svg {
    width: 18px;
    height: 18px;
}

.article-full-content {
    padding: 0 40px 40px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.article-full-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 32px 0 16px 0;
}

.article-full-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 24px 0 12px 0;
}

.article-full-content p {
    margin: 0 0 20px 0;
}

.article-full-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.article-full-content li {
    margin: 8px 0;
}

.article-full-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f9fafb;
    border-left: 4px solid #3b82f6;
    font-style: italic;
    color: #6b7280;
}

.article-share {
    padding: 24px 40px;
    border-top: 1px solid #f3f4f6;
}

.article-share h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.share-btn i {
    font-size: 16px;
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
}

.related-articles h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-article-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-article-content {
    padding: 16px;
}

.related-article-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-meta {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Article Card Link */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.article-card-link:hover {
    transform: translateY(-4px);
}

.article-card-link:hover .article-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== Footer ========== */
.footer {
    background: #2c2c2c;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
    font-size: 14px;
    color: #9ca3af;
}

.footer-content div {
    margin: 0;
}

.footer-content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .articles-list {
        gap: 16px;
    }

    .article-full-header {
        padding: 24px 20px 16px 20px;
    }

    .article-full-title {
        font-size: 28px;
    }

    .article-full-content {
        padding: 0 20px 24px 20px;
        font-size: 15px;
    }

    .article-share {
        padding: 20px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}
