/*
Theme Name: Temples Telugu
Theme URI: https://example.com
Author: You
Description: Telugu State-wise Indian Temples portal theme
Version: 2.0.1
Text Domain: temples-telugu
*/

:root{
  --bg:#f7f1e6;
  --card:#fff7ec;
  --text:#2b1d14;
  --muted:#6f5b4f;
  --accent:#b35a2a;
  --accent2:#8c3f1e;
  --border:#e7d7c8;
  --shadow: 0 10px 30px rgba(40,20,10,.10);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Noto Sans Telugu", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(circle at top, #fff 0%, var(--bg) 55%, #efe2d4 100%);
}

a{color:inherit; text-decoration:none}
.container{ width:min(1200px, 92%); margin:0 auto; }

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(247,241,230,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand .logo{
  width:44px;
  height:44px;
  border-radius:12px;
  background: linear-gradient(135deg, #d9a06b, #b35a2a);
  box-shadow: var(--shadow);
}
.brand .title{ line-height:1.1; }
.brand .title strong{ display:block; font-size:18px; }
.brand .title span{ display:block; font-size:12px; color:var(--muted); }

/* MENU */
.nav{ display:flex; align-items:center; }
.menu{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
}
.menu li a{
  font-weight:700;
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
  display:inline-block;
}
.menu li a:hover{ background:#fff; color:var(--text); }

.mobile-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-size:18px;
  cursor:pointer;
}

.mobile-menu{
  display:none;
  border-top:1px solid var(--border);
  background: rgba(247,241,230,.95);
}
.mobile-menu-list{
  list-style:none;
  padding:14px 0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-menu-list li a{
  display:block;
  padding:12px 14px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  font-weight:800;
}

/* HERO */
.hero{ padding:36px 0 26px; }
.hero-card{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  box-shadow: var(--shadow);
  border:1px solid var(--border);
  background:#2a1a12;
  min-height:380px;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:.9;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(30,18,12,.85) 0%, rgba(30,18,12,.55) 45%, rgba(30,18,12,.15) 100%);
}
.hero-content{
  position:relative;
  padding:48px;
  max-width:680px;
}
.hero h1{
  margin:0 0 10px;
  font-size:44px;
  color:#fff3e6;
}
.hero p{
  margin:0 0 18px;
  color: rgba(255,243,230,.86);
  line-height:1.6;
  font-size:16px;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:white;
  font-weight:700;
  box-shadow: 0 10px 22px rgba(179,90,42,.28);
}
.btn:hover{ transform: translateY(-1px); }

/* SECTIONS */
.section{ padding:22px 0; }
.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.section-title h2{ margin:0; font-size:22px; }
.section-title a{ color:var(--accent); font-weight:700; }

.grid{ display:grid; gap:16px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: rgba(255,247,236,.9);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-body{ padding:16px; }

.thumb{
  aspect-ratio: 16/10;
  background:#eee;
  background-size:cover;
  background-position:center;
}

.meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}

/* STATE SECTION */
.state-wrap{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:16px;
  align-items:stretch;
}
.map-placeholder{
  min-height:260px;
  border-radius:18px;
  border:1px dashed #d7bfa9;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,247,236,.85));
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-weight:700;
}
.state-buttons{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.state-buttons a{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 14px;
  font-weight:800;
  color:var(--text);
  box-shadow: 0 10px 18px rgba(40,20,10,.06);
}
.state-buttons a:hover{
  border-color:#d6a884;
  transform: translateY(-1px);
}
.more-states-btn{
  grid-column: 1 / -1;
  text-align:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff !important;
  border:none !important;
}

/* FOOTER */
.site-footer{
  margin-top:26px;
  background:#24150f;
  color:#ffeede;
  padding:24px 0;
}
.site-footer .footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}
.site-footer a{ color:#ffd3b8; }

/* RESPONSIVE */
@media (max-width: 960px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .state-wrap{ grid-template-columns: 1fr; }
  .hero-content{ padding:28px; }
  .hero h1{ font-size:34px; }
}

@media (max-width: 900px){
  .nav{ display:none; }
  .mobile-toggle{ display:block; }
  body.menu-open .mobile-menu{ display:block; }
  .hero h1{ font-size:28px; }
  .hero p{ font-size:14px; }
}

@media (max-width: 560px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr; }
}

.site-logo{
  width:46px;
  height:46px;
  object-fit:contain;
  display:block;
  background:#fff;
  padding:6px;
  border-radius:12px;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Desktop nav */
.desktop-nav{ display:flex; }
.mobile-toggle{ display:none; }

/* Mobile menu */
.mobile-menu{
  display:none;
  border-top:1px solid var(--border);
  background: rgba(247,241,230,.95);
  backdrop-filter: blur(10px);
}

body.menu-open .mobile-menu{
  display:block;
}

.mobile-menu-list{
  list-style:none;
  padding:14px 0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mobile-menu-list li a{
  display:block;
  padding:12px 14px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  font-weight:700;
}

/* Responsive */
@media (max-width: 560px){
  .desktop-nav{ display:none; }
  .mobile-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border-radius:14px;
    border:1px solid var(--border);
    background:#fff;
    font-size:20px;
    cursor:pointer;
    box-shadow: var(--shadow);
  }
}

.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

/* Search box */
.header-search{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:8px 10px;
  box-shadow: 0 10px 18px rgba(40,20,10,.06);
}

.header-search input{
  border:none;
  outline:none;
  font-size:14px;
  width:190px;
  background:transparent;
}

.header-search button{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:16px;
}

/* Mobile Search */
.mobile-search{
  display:none;
  margin:14px 0 10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:8px 10px;
}

.mobile-search input{
  border:none;
  outline:none;
  width:100%;
  font-size:14px;
  background:transparent;
}

.mobile-search button{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:16px;
}

/* Responsive */
@media (max-width: 560px){
  .header-search{ display:none; }
  body.menu-open .mobile-search{ display:flex; gap:8px; }
}
h1,h2,h3,h4,h5,h6,strong{
  font-family: "Noto Sans Telugu", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;
}

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.pagination .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}

.pagination .page-numbers.dots:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.pagination .prev,
.pagination .next {
  font-size: 16px;
}

/* LOADING STATE */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ERROR STATE */
.error-message {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #856404;
  margin: 20px 0;
}

.error-message strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

/* SUCCESS MESSAGE */
.success-message {
  background: #d4edda;
  border: 1px solid #28a745;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #155724;
  margin: 20px 0;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 12px 0;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 600;
}

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

.breadcrumb span {
  color: var(--text);
  font-weight: 600;
}
