/*
Theme Name: Improveme Arkiv
Theme URI: https://blogg.improveme.se
Description: Modernt arkivtema för improveme.se bloggar 2012-2023.
Author: Adminor
Author URI: https://adminor.net
Template: generatepress
Version: 1.1
Text Domain: improveme-arkiv
*/

/* === COLOR PALETTE ===
   Primary: #2d5016 (improveme green)
   Accent:  #ec6b17 (stoppapressarna orange)
   Dark:    #1a1a1a
   Light:   #f9f5f2
   ======================== */

/* --- Header --- */
.site-header {
  background: #1a1a1a !important;
  border-bottom: 3px solid #2d5016;
}
.site-header a,
.site-header .site-title a {
  color: #fff !important;
}
.site-header .site-title a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.site-description {
  color: rgba(255,255,255,0.6) !important;
  font-style: italic;
}

/* --- Navigation --- */
.main-navigation,
.main-navigation ul ul {
  background: #2d5016 !important;
}
.main-navigation a {
  color: rgba(255,255,255,0.95) !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* --- Archive Banner --- */
.archive-banner {
  background: linear-gradient(135deg, #2d5016 0%, #1a3a0a 60%, #0d1f05 100%);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.archive-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236,107,23,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.archive-banner h2 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.archive-banner p {
  opacity: 0.85;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
}
.archive-banner .year-badge {
  display: inline-block;
  background: #ec6b17;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  letter-spacing: 1px;
}

/* --- Content Area --- */
body {
  background: #f9f5f2 !important;
}
.separate-containers .inside-article,
.one-container .inside-article {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}
.site-content {
  max-width: 960px;
  margin: 0 auto;
}
.right-sidebar .site-main {
  width: 100% !important;
}
.right-sidebar #right-sidebar {
  display: none;
}

/* --- Entry styles --- */
.entry-header .entry-title {
  font-size: 1.6rem;
  font-weight: 600;
}
.entry-header .entry-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}
.entry-header .entry-title a:hover {
  color: #2d5016;
}
.entry-meta a {
  color: #ec6b17;
}

/* --- Blog list (for archive pages) --- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}
.blog-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.blog-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}
.blog-card h3 a:hover {
  color: #2d5016;
}
.blog-card .blog-meta {
  color: #888;
  font-size: 0.85rem;
}
.blog-card .post-count {
  display: inline-block;
  background: #f0f7ec;
  color: #2d5016;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Stats section --- */
.archive-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d5016;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* --- SEO Footer --- */
.seo-footer {
  background: #1a1a1a;
  padding: 2.5rem 1rem;
  text-align: center;
  margin-top: 2rem;
  border-top: 3px solid #2d5016;
}
.seo-footer .site-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.seo-footer .site-links a {
  color: #ec6b17;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.seo-footer .site-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.seo-footer .archive-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* --- GeneratePress footer override --- */
.site-info {
  background: #111 !important;
  color: rgba(255,255,255,0.5) !important;
}
.site-info a {
  color: rgba(255,255,255,0.7) !important;
}

/* --- Buttons --- */
.imp-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  margin: 0.5rem;
  transition: all 0.2s;
}
.imp-btn-primary {
  background: #2d5016;
  color: #fff !important;
}
.imp-btn-primary:hover {
  background: #1a3a0a;
}
.imp-btn-outline {
  background: transparent;
  color: #2d5016 !important;
  border: 2px solid #2d5016;
}
.imp-btn-outline:hover {
  background: #2d5016;
  color: #fff !important;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .archive-banner {
    padding: 2rem 1rem;
  }
  .archive-banner h2 {
    font-size: 1.4rem;
  }
  .archive-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .seo-footer .site-links {
    flex-direction: column;
    gap: 0.8rem;
  }
  .blog-list {
    grid-template-columns: 1fr;
  }
}
