/* =====================
   Reset & Base Styles
   ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Unbounded', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: #1a1a1a;
  background-color: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================
   Navigation
   ===================== */
.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background-color: #fafafa;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.nav-link {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 0.6rem;
  transition: all 0.3s;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link:focus {
  color: #ff6600;
  opacity: 1;
}

.btn-outline {
  border: 2px solid #ff6600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #ff6600;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.6rem;
  transition: all 0.3s;
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  background-color: #ff6600;
  color: #fff;
}

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: #ff6600;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #e65500;
}

.btn-secondary {
  background-color: #fff;
  border: 2px solid #ff6600;
  color: #ff6600;
}

.btn-secondary:hover {
  background-color: #ff6600;
  color: #fff;
}

.btn-large {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* =====================
   Hero Section
   ===================== */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
  background: url('images/sezon.jpeg') center/cover no-repeat;
  color: #fff;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero .content {
  position: relative;
  z-index: 2;
}

.author-name {
  font-size: 0.8rem;
  color: #cccccc;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-ctas a {
  margin: 0 0.5rem;
}

/* =====================
   Sections & Articles
   ===================== */
.articles {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #ff6600;
}

/* =====================
   Post / Author
   ===================== */
.post {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  gap: 2rem;
}

.post-text {
  flex: 1 1 400px;
}

.author-photo-container {
  flex: 0 0 200px;
}

.author-photo {
  border-radius: 50%;
  border: 3px solid #cccccc;
}

.author-title-centered {
  text-align: center;
  margin-bottom: 1rem;
}

.post-excerpt {
  margin-bottom: 1.5rem;
  text-align: center;
  font-style: italic;
  color: #666;
}

.first-paragraph {
  margin-bottom: 1.5rem;
}

/* Images in posts */
.post-image-bottom {
  width: 100%;
  max-width: 400px;
  margin-top: 1rem;
  border-radius: 12px;
}

/* Article content */
.article-content p,
.article-content ul {
  margin-bottom: 1rem;
}

.article-content ul {
  list-style: disc;
  margin-left: 1.5rem;
}

/* =====================
   Text Collapse/Expand
   ===================== */
.text-collapse {
  margin: 1.5rem 0;
}

.text-preview {
  position: relative;
}

.text-full {
  display: none;
}

.expand-dots {
  color: #ff6600;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 0.3rem;
  transition: color 0.3s;
}

.expand-dots:hover {
  color: #e65500;
}

.collapse-btn {
  display: inline-block;
  color: #ff6600;
  cursor: pointer;
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #ff6600;
  border-radius: 4px;
  transition: all 0.3s;
}

.collapse-btn:hover {
  background-color: #ff6600;
  color: #fff;
}

/* =====================
   Blog CTA Section
   ===================== */
.blog-cta-section {
  padding: 2rem 0;
  text-align: center;
}

.blog-cta {
  text-align: center;
  margin-top: 2rem;
}

/* =====================
   Blog Page Styles
   ===================== */
.blog-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.blog-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-header-lead {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.blog-main {
  padding: 3rem 0;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.blog-image-container {
  position: relative;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 2rem;
}

.blog-card h2,
.blog-card h3 {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card h2 a,
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: #ff6600;
}

.blog-excerpt {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-link {
  color: #e65500;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.blog-link:hover {
  color: #cc4c00;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #666;
  transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: #ff6600;
  color: white;
  border-color: #ff6600;
}

.pagination-ellipsis {
  padding: 0.5rem;
  color: #999;
}

/* Newsletter */
.blog-newsletter {
  background: #faf5f0;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
}

.blog-newsletter h3 {
  margin-bottom: 1rem;
  color: #ff6600;
}

.blog-newsletter p {
  margin-bottom: 2rem;
  color: #666;
}

/* =====================
   Subscribe Section
   ===================== */
.subscribe-section {
  background-color: #faf5f0;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 12px;
  margin: 3rem auto;
  max-width: 600px;
}

.subscribe-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form input[type="email"] {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1 1 250px;
}

.subscribe-form button {
  flex: 0 0 auto;
}

/* =====================
   Footer
   ===================== */
footer {
  background-color: #fafafa;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-link {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: #ff6600;
}

.social-icon {
  width: 20px;
  height: 20px;
}

.footer-link {
  text-decoration: none;
  color: #999;
}

.footer-link:hover {
  color: #ff6600;
}

/* =====================
   Shop Styles - Dark Theme
   ===================== */
body.dark-theme {
  background-color: #1a1a1a;
  color: #fff;
}

body.dark-theme .top-nav {
  background-color: #2d2d2d;
  border-bottom-color: #444;
}

body.dark-theme .nav-link {
  color: #fff;
  opacity: 0.7;
}

body.dark-theme .nav-link:hover {
  color: #ff6600;
  opacity: 1;
}

body.dark-theme .btn-outline {
  border-color: #ff6600;
  color: #ff6600;
  opacity: 1;
}

body.dark-theme .btn-outline:hover {
  background-color: #ff6600;
  color: #1a1a1a;
}

/* Dark footer for shop */
body.dark-theme footer {
  background-color: #2d2d2d;
  border-top-color: #444;
}

body.dark-theme .social-link {
  color: #fff;
}

body.dark-theme .footer-link {
  color: #999;
}

body.dark-theme .copyright {
  color: #ccc;
}

.shop-header {
  background: #111;
  text-align: center;
  padding: 50px 20px 40px;
  color: #fff;
  margin-top: 20px;
}

.shop-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.shop-lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.shop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 50px 20px;
  background: #1a1a1a;
  min-height: 60vh;
}

.book-card {
  background: #2d2d2d;
  border-radius: 15px;
  width: 350px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 650px;
  padding: 0;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.book-image-container {
  padding: 20px 20px 0;
  background: #2a2a2a;
  flex-shrink: 0;
}

.book-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0;
}

.book-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-card h2 {
  font-size: 1.4rem;
  margin: 0 0 15px;
  color: #fff;
  line-height: 1.3;
  min-height: auto;
}

.book-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin: 0 0 25px;
  flex-grow: 1;
}

.book-card .btn {
  display: inline-block;
  background: #ff6600;
  color: #111;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.book-card .btn:hover {
  background: #ffa726;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,152,0,0.3);
}

.back-container {
  text-align: center;
  padding: 30px 20px;
  background: #1a1a1a;
}

.back-btn {
  color: #ccc;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 25px;
  border: 2px solid rgba(192,192,192,0.3);
  display: inline-block;
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: #fff;
  border-color: #ff6600;
  background: rgba(255,152,0,0.1);
}

/* =====================
   Animations: fade-up
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
  .post {
    flex-direction: column;
    align-items: center;
  }

  .author-photo-container {
    margin-bottom: 1rem;
  }

  .top-nav {
    gap: 0.6rem;
    padding: 0.6rem;
  }

  .nav-link {
    font-size: 0.55rem;
  }

  .btn-outline {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p.lead {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .shop {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card.featured {
    grid-template-columns: 1fr;
  }

  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-header-lead {
    font-size: 1rem;
  }

  /* Shop responsive */
  .shop-header {
    padding: 40px 20px 30px;
  }
  
  .shop-header h1 {
    font-size: 2rem;
  }
  
  .shop-lead {
    font-size: 1rem;
  }
  
  .shop {
    gap: 25px;
    padding: 30px 15px;
  }
  
  .book-card {
    width: 100%;
    max-width: 400px;
    min-height: 600px;
  }
  
  .book-image {
    height: 350px;
  }
  
  .book-content {
    padding: 20px;
  }
  
  .book-card h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-ctas a {
    margin: 0;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input[type="email"] {
    flex: 1 1 100%;
  }

  .blog-pagination {
    flex-wrap: wrap;
  }

  /* Shop mobile */
  .shop-header h1 {
    font-size: 1.7rem;
  }
  
  .book-card {
    min-height: 550px;
  }
  
  .book-image {
    height: 300px;
  }
  
  .book-card h2 {
    font-size: 1.2rem;
  }
  
  .book-description {
    font-size: 0.95rem;
  }
}

/* =====================
   Utility Classes
   ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
