/*
Theme Name: ManMade Theme
Theme URI: https://example.com/manmade-theme
Description: A clean, minimal WordPress theme inspired by ManMadeDIY with multi-page post support and customizable colors
Version: 1.0.0
Author: Your Name
Author URI: https://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manmade-theme
Domain Path: /languages
Tags: blog, minimal, clean, responsive, customizable
*/

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #fff;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Garamond', serif;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: #222;
  font-weight: 700;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

a {
  color: #1BA1A1;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #158585;
  text-decoration: underline;
}

/* ========================================
   LAYOUT & CONTAINER
   ======================================== */

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

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  margin: 50px 0;
}

.main-content {
  flex: 1;
}

.sidebar {
  width: 280px;
}

@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #222;
  min-width: 150px;
}

.logo a {
  color: #222;
  text-decoration: none;
}

.logo a:hover {
  text-decoration: none;
}

nav {
  display: flex;
  gap: 25px;
  flex: 1;
}

nav a {
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1BA1A1;
  position: relative;
}

nav a:hover {
  color: #158585;
}

.search-bar {
  display: flex;
  gap: 5px;
  align-items: center;
}

.search-bar input {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 200px;
}

.search-bar button {
  padding: 10px 18px;
  background-color: #1BA1A1;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 0.85rem;
}

.search-bar button:hover {
  background-color: #158585;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 20px;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  .menu-toggle {
    display: block;
  }

  .search-bar {
    flex-direction: column;
    width: 100%;
  }

  .search-bar input {
    width: 100%;
  }

  .header-content {
    flex-wrap: wrap;
  }
}

/* ========================================
   POST/ARTICLE STYLES
   ======================================== */

.post {
  margin-bottom: 60px;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 0;
  border-bottom: none;
}

.post-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #222;
}

.post-meta {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: #666;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 15px;
}

.post-meta a {
  color: #1BA1A1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-author {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1BA1A1;
}

.post-category {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #1BA1A1;
}

.post-date {
  color: #999;
  font-size: 0.9rem;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 40px 0;
  border-radius: 6px;
  display: block;
}

.post-content figure {
  margin: 40px 0;
}

.post-content figcaption {
  font-size: 0.9rem;
  color: #999;
  margin-top: 10px;
  font-style: italic;
}

/* ========================================
   PAGINATION / NEXT PAGE BUTTON
   ======================================== */

.post-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  flex-direction: column;
  gap: 20px;
}

.pagination-nav {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.pagination-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 40px;
  background-color: #1BA1A1;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  min-width: 300px;
  text-decoration: none;
  position: relative;
  clip-path: polygon(
    0% 15%,
    2% 10%,
    4% 15%,
    6% 10%,
    8% 15%,
    10% 10%,
    12% 15%,
    14% 10%,
    16% 15%,
    18% 10%,
    20% 15%,
    22% 10%,
    24% 15%,
    26% 10%,
    28% 15%,
    30% 10%,
    32% 15%,
    34% 10%,
    36% 15%,
    38% 10%,
    40% 15%,
    42% 10%,
    44% 15%,
    46% 10%,
    48% 15%,
    50% 10%,
    52% 15%,
    54% 10%,
    56% 15%,
    58% 10%,
    60% 15%,
    62% 10%,
    64% 15%,
    66% 10%,
    68% 15%,
    70% 10%,
    72% 15%,
    74% 10%,
    76% 15%,
    78% 10%,
    80% 15%,
    82% 10%,
    84% 15%,
    86% 10%,
    88% 15%,
    90% 10%,
    92% 15%,
    94% 10%,
    96% 15%,
    98% 10%,
    100% 15%,
    100% 85%,
    98% 90%,
    96% 85%,
    94% 90%,
    92% 85%,
    90% 90%,
    88% 85%,
    86% 90%,
    84% 85%,
    82% 90%,
    80% 85%,
    78% 90%,
    76% 85%,
    74% 90%,
    72% 85%,
    70% 90%,
    68% 85%,
    66% 90%,
    64% 85%,
    62% 90%,
    60% 85%,
    58% 90%,
    56% 85%,
    54% 90%,
    52% 85%,
    50% 90%,
    48% 85%,
    46% 90%,
    44% 85%,
    42% 90%,
    40% 85%,
    38% 90%,
    36% 85%,
    34% 90%,
    32% 85%,
    30% 90%,
    28% 85%,
    26% 90%,
    24% 85%,
    22% 90%,
    20% 85%,
    18% 90%,
    16% 85%,
    14% 90%,
    12% 85%,
    10% 90%,
    8% 85%,
    6% 90%,
    4% 85%,
    2% 90%,
    0% 85%
  );
}

.pagination-nav a:hover {
  background-color: #158585;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 161, 161, 0.3);
}

.pagination-nav .prev::before {
  content: '←';
  margin-right: 5px;
}

.pagination-nav .next::after {
  content: '→';
  margin-left: 5px;
}

.pagination-info {
  font-size: 0.9rem;
  color: #999;
  margin-top: 20px;
}

/* ========================================
   AUTHOR BIO SECTION
   ======================================== */

.author-bio {
  background-color: transparent;
  padding: 30px;
  border-radius: 0;
  margin: 50px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 2px dashed #1BA1A1;
  position: relative;
}

.author-bio::before {
  content: 'Written by:';
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #fff;
  padding: 0 8px;
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #1BA1A1;
}

.author-info h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: #1BA1A1;
  font-weight: 700;
}

.author-info p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #666;
}

.author-info a {
  color: #1BA1A1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-avatar {
    width: 100px;
    height: 100px;
  }

  .pagination-nav a {
    min-width: 100%;
  }
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: #222;
  color: #fff;
  padding: 50px 0 30px;
  margin-top: 80px;
  border-top: 1px solid #444;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section a {
  color: #ccc;
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #1BA1A1;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
  color: #999;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SIDEBAR WIDGETS
   ======================================== */

.widget {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 6px;
  margin-bottom: 30px;
  border: 1px solid #eee;
}

.widget h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid #1BA1A1;
  color: #222;
}

.widget ul {
  list-style: none;
}

.widget li {
  margin-bottom: 12px;
}

.widget a {
  color: #1BA1A1;
  font-weight: 500;
}

.widget a:hover {
  color: #158585;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }

.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }

/* ========================================
   AFFILIATE DISCLOSURE
   ======================================== */

.affiliate-disclosure {
  font-size: 0.9rem;
  color: #999;
  font-style: italic;
  margin-bottom: 20px;
}

.affiliate-disclosure a {
  color: #1BA1A1;
  text-decoration: underline;
}
