/*
Theme Name: UntoldSphere
Theme URI: https://untoldsphere.com
Author: UntoldSphere Team
Description: Custom multi-country news/story theme for UntoldSphere.com — featuring USA Untold, Britain Uncovered, and España sections.
Version: 1.0
Text Domain: untoldsphere
*/

:root{
  --color-bg: #0f0f10;
  --color-surface: #1a1a1c;
  --color-text: #f2f2f2;
  --color-muted: #a0a0a5;
  --color-accent: #e63946;
  --color-usa: #2a6cd6;
  --color-uk: #6c3ce6;
  --color-es: #e6a13c;
  --radius: 10px;
  --maxw: 1200px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #2a2a2c;
}

.site-branding a{
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.site-branding span{ color: var(--color-accent); }

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

.main-nav a{
  font-weight: 600;
  font-size: 15px;
  color: var(--color-muted);
  transition: color .2s;
}

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

/* Hero */
.hero{
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid #2a2a2c;
}

.hero h1{
  font-size: 42px;
  margin: 0 0 10px;
}

.hero p{
  color: var(--color-muted);
  font-size: 18px;
}

/* Country grid */
.country-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 50px 0;
}

@media (max-width: 800px){
  .country-grid{ grid-template-columns: 1fr; }
}

.country-block{
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 4px solid var(--color-accent);
}

.country-block.usa{ border-top-color: var(--color-usa); }
.country-block.uk{ border-top-color: var(--color-uk); }
.country-block.es{ border-top-color: var(--color-es); }

.country-block h2{
  margin-top: 0;
  font-size: 20px;
}

.country-block .view-all{
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 600;
}

/* Story card */
.story-card{
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #2a2a2c;
}

.story-card:last-child{ border-bottom: none; }

.story-card .thumb{
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a2c;
}

.story-card .thumb img{
  width: 100%; height: 100%; object-fit: cover;
}

.story-card .info h3{
  font-size: 15px;
  margin: 0 0 4px;
}

.story-card .info .excerpt{
  font-size: 13px;
  color: var(--color-muted);
}

/* Latest feed grid (mixed) */
.latest-feed{
  padding: 40px 0 60px;
}

.latest-feed h2{
  font-size: 26px;
  margin-bottom: 24px;
}

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

@media (max-width: 800px){
  .feed-grid{ grid-template-columns: 1fr; }
}

.feed-card{
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.feed-card .thumb{
  aspect-ratio: 16/9;
  background: #2a2a2c;
  overflow: hidden;
}

.feed-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }

.feed-card .body{ padding: 14px; }

.feed-card h3{ font-size: 16px; margin: 0 0 8px; }

.feed-card .meta{
  font-size: 12px;
  color: var(--color-muted);
}

/* Archive / category page */
.archive-header{
  padding: 40px 0 10px;
}

.archive-header h1{
  font-size: 32px;
  margin: 0;
}

.archive-list{
  padding: 20px 0 60px;
  display: grid;
  gap: 20px;
}

/* Single post */
.single-post{
  padding: 40px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}

.single-post h1{ font-size: 34px; }

.single-post .entry-meta{
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.single-post .entry-content{ font-size: 17px; }

/* Footer */
.site-footer{
  border-top: 1px solid #2a2a2c;
  padding: 30px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

.site-footer .socials{
  margin-top: 10px;
}

.site-footer .socials a{
  margin: 0 8px;
  color: var(--color-text);
}

/* Pagination */
.pagination{
  padding: 20px 0;
  display: flex;
  gap: 12px;
}

.pagination a, .pagination span{
  padding: 8px 14px;
  background: var(--color-surface);
  border-radius: 6px;
}
