/* =============================================
   THE PROFIT FAN SITE - Main Stylesheet
   Based on WordPress Total Theme v4.4
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Raleway:wght@400;600;700;800&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  background: #f5f5f5;
}

a { color: #7b44a0; text-decoration: none; }
a:hover { color: #5a2d80; text-decoration: underline; }

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

ul, ol { padding-left: 1.5em; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- HEADER ---- */
#site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Logo */
.site-logo a {
  font-family: 'Raleway', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #222;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-logo a:hover { color: #7b44a0; text-decoration: none; }

/* ---- NAV ---- */
#main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

#main-nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

#main-nav a:hover,
#main-nav a.active {
  color: #7b44a0;
  border-bottom-color: #7b44a0;
  text-decoration: none;
}

.nav-search-icon {
  cursor: pointer;
  color: #555;
  font-size: 1.1rem;
  margin-left: 10px;
  transition: color 0.2s;
}
.nav-search-icon:hover { color: #7b44a0; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- SEARCH OVERLAY ---- */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#search-overlay.open { display: flex; }
#search-overlay form {
  display: flex;
  width: 90%;
  max-width: 600px;
}
#search-overlay input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
#search-overlay button {
  padding: 14px 22px;
  background: #7b44a0;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
}
#search-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---- PROMO BANNER ---- */
#promo-banner {
  background: #2e9e00;
  color: #fff;
  text-align: center;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
#promo-banner a { color: #ffff99; text-decoration: underline; }
#promo-banner a:hover { color: #fff; }

/* ---- BREADCRUMB ---- */
.breadcrumb-wrap {
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 0;
  font-size: 0.82rem;
  color: #888;
}
.breadcrumb-wrap a { color: #7b44a0; }
.breadcrumb-wrap span { margin: 0 6px; }

/* ---- MAIN CONTENT AREA ---- */
#main-content {
  padding: 40px 0 60px;
  flex: 1;
}

.content-sidebar-wrap {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: flex-start;
}

/* ---- POSTS / ARTICLES ---- */
#posts-area {
  flex: 1;
  min-width: 0;
}

/* Page/category heading */
.page-heading {
  font-size: 1.6rem;
  color: #222;
  border-bottom: 3px solid #7b44a0;
  padding-bottom: 10px;
  margin-bottom: 30px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
}

/* Article card */
.post-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.1); }

.post-thumbnail {
  overflow: hidden;
  max-height: 280px;
}
.post-thumbnail img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-thumbnail img { transform: scale(1.03); }

.post-body {
  padding: 22px 26px 24px;
}

.post-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.post-title a { color: #7b44a0; text-decoration: none; }
.post-title a:hover { color: #5a2d80; text-decoration: underline; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-meta a { color: #7b44a0; }
.post-meta .meta-icon { margin-right: 4px; }

.post-excerpt { color: #555; line-height: 1.75; }

.read-more {
  display: inline-block;
  margin-top: 14px;
  color: #7b44a0;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.read-more:hover { border-bottom-color: #7b44a0; text-decoration: none; }

/* Divider between posts */
.post-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0 26px;
}

/* ---- SINGLE POST PAGE ---- */
.single-post-wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 32px 36px 40px;
}
.single-post-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 12px;
}
.single-post-content h2 { font-size: 1.3rem; margin: 24px 0 10px; }
.single-post-content h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.single-post-content p { margin-bottom: 16px; }
.single-post-content ul, .single-post-content ol { margin-bottom: 16px; }
.single-post-content img { border-radius: 6px; margin: 16px auto; }
.single-post-content a { color: #7b44a0; }

.post-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: #888;
}
.post-tags a {
  background: #f0eaf5;
  color: #7b44a0;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 6px;
  font-size: 0.8rem;
}
.post-tags a:hover { background: #7b44a0; color: #fff; text-decoration: none; }

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination a:hover, .pagination span.current {
  background: #7b44a0;
  color: #fff;
  border-color: #7b44a0;
}

/* ---- SIDEBAR ---- */
#sidebar {
  width: 290px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.widget {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 22px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #222;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid #7b44a0;
}

/* Amazon widget */
.widget-amazon {
  text-align: center;
}
.widget-amazon img { margin: 0 auto 12px; border-radius: 4px; }
.widget-amazon p { font-size: 0.85rem; color: #555; margin-bottom: 12px; }
.btn-amazon {
  display: inline-block;
  background: #ff9900;
  color: #111 !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-amazon:hover { background: #e88900; }

/* Disclaimer widget */
.widget-disclaimer p {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.65;
}
.widget-disclaimer a { color: #7b44a0; }

/* Recent posts widget */
.widget-recent ul { list-style: none; padding: 0; }
.widget-recent li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
}
.widget-recent li:last-child { border-bottom: none; }
.widget-recent a { color: #555; font-weight: 600; }
.widget-recent a:hover { color: #7b44a0; text-decoration: none; }

/* Categories widget */
.widget-categories ul { list-style: none; padding: 0; }
.widget-categories li {
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.88rem;
}
.widget-categories li:last-child { border-bottom: none; }
.widget-categories a {
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.widget-categories a:hover { color: #7b44a0; text-decoration: none; }
.cat-count {
  background: #f0eaf5;
  color: #7b44a0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Social share widget */
.widget-social { text-align: center; }
.social-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity 0.2s;
  flex: 1;
  min-width: 110px;
  justify-content: center;
}
.social-btn:hover { opacity: 0.85; text-decoration: none !important; }
.social-btn.facebook { background: #1877f2; }
.social-btn.twitter  { background: #1da1f2; }
.social-btn.youtube  { background: #ff0000; }

/* ---- HERO SECTION (Homepage only) ---- */
#hero {
  background: linear-gradient(135deg, #1a0630 0%, #3d1a79 50%, #7b44a0 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
#hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto 22px;
}
.hero-cta {
  display: inline-block;
  background: #2e9e00;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: #257e00; transform: translateY(-2px); }

/* ---- ABOUT PAGE ---- */
.about-page-wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 32px 36px 40px;
}
.about-featured-img {
  border-radius: 8px;
  margin-bottom: 24px;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

/* ---- FOOTER ---- */
#site-footer {
  background: #1e1e2e;
  color: #ccc;
  padding: 50px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.footer-brand .logo { color: #fff; font-size: 1.4rem; font-weight: 800; font-family: 'Raleway', sans-serif; }
.footer-brand p { font-size: 0.85rem; color: #aaa; margin-top: 10px; line-height: 1.65; }

.footer-head {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #333;
  padding: 16px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- NOTIFICATION / BACK TO TOP ---- */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: #7b44a0;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-size: 1.1rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  z-index: 500;
  text-decoration: none;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: #5a2d80; text-decoration: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .content-sidebar-wrap { flex-direction: column; }
  #sidebar { width: 100%; position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #hero h1 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .header-inner { padding: 14px 16px; }
  .site-logo a { font-size: 1.3rem; }
  #main-nav { display: none; flex-direction: column; }
  #main-nav.open { display: flex; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .single-post-wrap { padding: 20px; }
  #hero { padding: 40px 16px; }
  #hero h1 { font-size: 1.6rem; }
  .content-sidebar-wrap { padding: 0 14px; }
}
