/* AINNA AI Blog - Extra Styles (extracted from index.php inline <style>) */
/* This file is auto-loaded via filemtime() cache busting */

.ai-blog-header { padding: 60px 0 40px; text-align: center; }
.ai-blog-title { font-size: 48px; font-weight: 700; margin-bottom: 10px; background: linear-gradient(135deg, #007AFF, #5856D6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ai-blog-subtitle { font-size: 18px; color: var(--color-text-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 40px 0; }
.stat-card { background: var(--color-bg-secondary); border-radius: 16px; padding: 30px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: block; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-icon { font-size: 32px; margin-bottom: 15px; }
.stat-value { font-size: 36px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 5px; }
.stat-label { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 10px; }
.stat-desc { font-size: 13px; color: var(--color-text-tertiary); }
.featured-section { margin: 60px 0; }
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 30px; color: var(--color-text-primary); }
.featured-article { background: var(--color-bg-secondary); border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.featured-image-container { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-tertiary); }
.featured-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.featured-article:hover .featured-image { transform: scale(1.05); }
.featured-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-category { display: inline-block; background: linear-gradient(135deg, #007AFF, #5856D6); color: white; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; width: fit-content; }
.featured-title { font-size: 32px; font-weight: 700; margin-bottom: 15px; color: var(--color-text-primary); line-height: 1.3; }
.featured-title a { color: inherit; text-decoration: none; }
.featured-title a:hover { color: #007AFF; }
.featured-excerpt { font-size: 16px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 20px; }
.featured-meta { display: flex; gap: 20px; font-size: 14px; color: var(--color-text-tertiary); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; margin-top: 40px; }
.article-card { background: var(--color-bg-primary); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: block; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-image-container { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--color-bg-tertiary); }
.article-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-image { transform: scale(1.05); }
.article-content { padding: 24px; }
.article-category { display: inline-block; font-size: 12px; font-weight: 600; color: #007AFF; text-transform: uppercase; margin-bottom: 10px; }
.article-title { font-size: 18px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 12px; line-height: 1.4; }
.article-excerpt { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--color-text-tertiary); }
@media (max-width: 900px) { 
    .featured-article { grid-template-columns: 1fr; } 
    .featured-image-container { aspect-ratio: 16/9; } 
    .articles-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } 
    .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { 
    .ai-blog-title { font-size: 32px; } 
    .stats-grid { grid-template-columns: 1fr; } 
    .articles-grid { grid-template-columns: 1fr; } 
    .featured-content { padding: 24px; } 
    .featured-title { font-size: 24px; }
    
    /* Mobile responsive improvements */
    .container { padding: 0 15px !important; }
    .table-section { padding: 0 15px !important; margin: 2rem auto; }
    .table-controls { flex-direction: column; align-items: stretch; gap: 10px; }
    .table-controls input, 
    .table-controls select {
        width: 100%;
        max-width: none;
    }
    .grid-controls { flex-direction: column; align-items: stretch; }
    .articles-table { font-size: 13px; min-width: 500px; }
    .table-thumbnail { width: 70px; height: 50px; }
    .table-title { font-size: 14px; }
    .table-description { display: none; }
    .table-date { font-size: 11px; }
    .table-pagination { flex-wrap: wrap; gap: 0.3rem; }
    .table-pagination button { padding: 0.4rem 0.7rem; font-size: 12px; }
    .grid-pagination { flex-wrap: wrap; gap: 0.3rem; }
    .grid-pagination button { padding: 0.4rem 0.7rem; font-size: 12px; }
    
    /* Fix navbar for mobile */
    .nav-menu { display: none; }
    .burger-menu { display: block !important; }
    .nav-menu.active { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--color-bg-primary); padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
}

/* Table View Styles */
.table-section { max-width: 1400px; margin: 3rem auto; padding: 0 3rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }
.table-controls { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; flex-wrap: wrap; }
.table-controls label { font-weight: 500; }
.articles-table { width: 100%; border-collapse: collapse; background: var(--color-bg-primary); min-width: 600px; }
.articles-table th { text-align: left; padding: 1rem; border-bottom: 2px solid var(--color-border); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.articles-table td { padding: 0.8rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.articles-table tr:hover { background: var(--color-bg-secondary); }
.table-thumbnail { width: 100px; height: 70px; object-fit: cover; border-radius: 8px; }
.table-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; line-height: 1.3; word-break: break-word; }
.table-title a { color: var(--color-text-primary); text-decoration: none; }
.table-title a:hover { opacity: 0.7; }
.table-description { font-size: 0.85rem; opacity: 0.7; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 400px; }
.table-date { font-size: 0.85rem; opacity: 0.6; white-space: nowrap; }
.table-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.table-pagination button { padding: 0.5rem 1rem; border: 1px solid var(--color-border); background: var(--color-bg-primary); color: var(--color-text-primary); cursor: pointer; border-radius: 6px; }
.table-pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.table-pagination button:hover:not(:disabled) { background: var(--color-bg-secondary); }

/* Grid Pagination Styles */
.grid-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.grid-pagination button { padding: 0.5rem 1rem; border: 1px solid var(--color-border); background: var(--color-bg-primary); color: var(--color-text-primary); cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.grid-pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.grid-pagination button:hover:not(:disabled) { background: var(--color-bg-secondary); transform: translateY(-2px); }
.grid-controls { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; flex-wrap: wrap; padding: 1rem; background: var(--color-bg-secondary); border-radius: 12px; }

/* Footer Styles (from index.php bottom) */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    background: var(--color-bg-primary);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.footer-links a:hover {
    opacity: 1;
}
.footer-branding {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-top: 1rem;
    color: var(--color-text-secondary);
}
.footer-branding a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 700;
    opacity: 1;
}
.copyright {
    margin-top: 0.5rem;
}
