/*
Theme Name: Greatest Andhra
Version: 3.2
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary: #FF6B00;
  --text: #222;
  --text-light: #666;
  --text-muted: #999;
  --border: #E5E5E5;
  --white: #FFF;
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

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

/* Header */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.site-logo span { color: var(--text); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.main-nav a:hover { color: var(--primary); }

/* Main */
.site-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 30px 0;
}

/* Section */
.news-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.view-all {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.post-card:hover {
  border-color: var(--primary);
}

.post-card .cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  display: block;
}

.post-card .title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
  display: block;
  color: var(--text);
}

.post-card:hover .title { color: var(--primary); }

.post-card .date {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sidebar */
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s;
}

.cat-card:hover {
  border-color: var(--primary);
}

.cat-card:hover svg { stroke: var(--primary); }

.cat-card svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-light);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: 8px;
}

.cat-card .name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.cat-card .count {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Popular */
.pop-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.pop-item:first-child { padding-top: 0; }
.pop-item:last-child { border-bottom: none; padding-bottom: 0; }

.pop-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  min-width: 24px;
}

.pop-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.pop-item:hover .pop-title { color: var(--primary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 20px;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.footer-logo span { color: var(--text); }

.footer-about {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 12px; color: var(--text-light); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 1000px) {
  .site-main { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
