/* AIToolsHub - Main Stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fafafa; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
nav { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
nav .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { font-size: 1.5rem; font-weight: 700; color: #667eea; text-decoration: none; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: #667eea; }

/* Header */
header.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 80px 0; text-align: center; }
header.hero h1 { font-size: 3rem; margin-bottom: 15px; }
header.hero p { font-size: 1.3rem; opacity: 0.9; }

/* Buttons */
.btn { display: inline-block; background: #667eea; color: white; padding: 15px 40px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(102,126,234,0.4); }

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; color: #333; }

/* Cards Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.card h3 { font-size: 1.4rem; margin-bottom: 15px; color: #333; }
.card p { color: #666; margin-bottom: 20px; }
.card a { color: #667eea; text-decoration: none; font-weight: 600; }
.card a:hover { text-decoration: underline; }

/* Tags */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.tag { background: #f0f0f0; padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; color: #666; }

/* Article Page */
.article-page { background: white; padding: 40px 0 80px; }
.article-header { text-align: center; padding: 40px 0; border-bottom: 1px solid #eee; margin-bottom: 40px; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 20px; color: #333; }
.article-header .meta { display: flex; justify-content: center; gap: 20px; color: #888; font-size: 0.9rem; }
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2 { font-size: 1.8rem; margin: 40px 0 20px; color: #333; }
.article-content h3 { font-size: 1.4rem; margin: 30px 0 15px; color: #444; }
.article-content p { margin-bottom: 20px; color: #555; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 20px 0; padding-left: 25px; }
.article-content li { margin-bottom: 10px; color: #555; }
.article-content table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.article-content th, .article-content td { padding: 15px; border: 1px solid #ddd; text-align: left; }
.article-content th { background: #f8f9fa; font-weight: 600; }
.article-footer { background: #f8f9fa; padding: 30px; border-radius: 12px; margin-top: 50px; }
.article-footer h3 { margin-bottom: 15px; }
.article-footer ul { list-style: none; padding: 0; }
.article-footer li { margin-bottom: 10px; }

/* Footer */
footer { background: #333; color: white; text-align: center; padding: 40px 0; margin-top: 60px; }
footer p { opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    header.hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    nav .container { flex-direction: column; gap: 15px; }
    .article-header h1 { font-size: 1.8rem; }
}
