/* SolusiRumah - Main Stylesheet */

:root {
  --primary: #0066cc;
  --secondary: #ff6600;
  --text: #333;
  --light: #f5f5f5;
  --border: #ddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary), #003d99);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo a { font-size: 24px; font-weight: bold; color: white; text-decoration: none; }

.nav { display: flex; gap: 20px; }

.nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav a:hover { opacity: 0.8; }

/* Main Content */
.main-content { padding: 40px 0; }

/* Hero */
.hero {
  text-align: center;
  padding: 40px 0;
  border-bottom: 2px solid var(--light);
  margin-bottom: 40px;
}

.hero h1 { font-size: 36px; margin-bottom: 15px; color: var(--primary); }

.hero p { font-size: 18px; color: #666; }

/* Articles Grid */
.articles-grid { margin: 40px 0; }

.articles-grid h2 { margin-bottom: 30px; font-size: 28px; color: var(--primary); }

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

.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.article-card h3 { margin: 15px 0; }

.article-card h3 a { color: var(--primary); text-decoration: none; }

.article-card h3 a:hover { text-decoration: underline; }

.meta { font-size: 14px; color: #999; }

.read-more { color: var(--secondary); text-decoration: none; font-weight: bold; }

.read-more:hover { text-decoration: underline; }

/* Post */
.post-header { margin-bottom: 30px; border-bottom: 2px solid var(--light); padding-bottom: 20px; }

.post-header h1 { font-size: 36px; margin-bottom: 15px; color: var(--primary); }

.post-header time { color: #999; font-size: 14px; }

.post-content { font-size: 16px; margin: 30px 0; line-height: 1.8; }

.post-content h2 { font-size: 24px; margin-top: 30px; margin-bottom: 15px; color: var(--primary); }

.post-content h3 { font-size: 20px; margin-top: 20px; margin-bottom: 10px; }

.post-content img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 8px; }

.post-content a { color: var(--primary); }

.post-content ul, .post-content ol { margin-left: 20px; margin-bottom: 15px; }

.post-content li { margin-bottom: 8px; }

.post-footer { margin-top: 30px; padding-top: 20px; border-top: 2px solid var(--light); }

.tags { display: flex; gap: 10px; flex-wrap: wrap; }

.tags a {
  background: var(--light);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.tags a:hover { background: var(--primary); color: white; }

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

.footer a { color: #0066cc; text-decoration: none; }

.footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .header .container { flex-direction: column; }
  .hero h1 { font-size: 28px; }
  .post-header h1 { font-size: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
}
