/*
Theme Name: Tips2Earn
Theme URI: https://tips2earn.com
Author: Tips2Earn Team
Author URI: https://tips2earn.com
Description: A modern, responsive WordPress theme for blogs focused on earning tips, financial advice, and money-making strategies. Features dark/light mode, custom colors, and optimized for Google AdSense.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tips2earn
Tags: blog, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ===========================
   Color Variables & Theme Modes
   =========================== */

body[theme-mode="light"] {
  --bg: #ffffff;
  --text: #044944;
  --heading: #0e4d3a;
  --muted: #4f6f64;
  --accent: #ffc000;
}

body[theme-mode="dark"] {
  --bg: #0b0f0e;
  --text: #ededed;
  --heading: #ffffff;
  --muted: #9fafA8;
  --accent: #ffc000;
}

/* ===========================
   Base Styles
   =========================== */

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ===========================
   Header Styles
   =========================== */

.header-bg {
  background-color: var(--bg);
  border-bottom: 1px solid rgba(255, 192, 0, 0.1);
}

.nav-link {
  color: var(--text);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  color: var(--text);
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 192, 0, 0.1);
}

.mobile-menu-border {
  border-top: 1px solid rgba(255, 192, 0, 0.1);
}

/* Custom Logo Styling */
.custom-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  height: 70px;
}

/* ===========================
   Typography
   =========================== */

.heading-text {
  color: var(--heading);
}

.muted-text {
  color: var(--muted);
}

.accent-text {
  color: var(--accent);
}

.accent-bg {
  background-color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
}

/* ===========================
   Cards & Components
   =========================== */

.card-bg {
  background-color: var(--bg);
  border: 1px solid rgba(255, 192, 0, 0.15);
  transition: all 0.3s ease;
}

.card-bg:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.category-tag {
  background-color: rgba(255, 192, 0, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
}

/* ===========================
   Search Bar
   =========================== */

.search-input {
  background-color: var(--bg);
  color: var(--text);
  border: 2px solid rgba(255, 192, 0, 0.3);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===========================
   Pagination
   =========================== */

.pagination-btn {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid rgba(255, 192, 0, 0.3);
  transition: all 0.2s;
}

.pagination-btn:hover,
.pagination-btn.active {
  background-color: var(--accent);
  color: var(--heading);
}

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

.pagination .page-numbers {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid rgba(255, 192, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--accent);
  color: var(--heading);
}

/* ===========================
   Footer Styles
   =========================== */

.footer-bg {
  background-color: rgba(255, 192, 0, 0.05);
  border-top: 1px solid rgba(255, 192, 0, 0.1);
}

/* ===========================
   WordPress Default Classes
   =========================== */

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

.sticky {
  /* Styles for sticky posts */
}

.bypostauthor {
  /* Styles for post author */
}

/* ===========================
   Comments
   =========================== */

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 192, 0, 0.05);
  border: 1px solid rgba(255, 192, 0, 0.1);
  border-radius: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: var(--heading);
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.comment-reply-link {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===========================
   Widgets
   =========================== */

.widget {
  margin-bottom: 2rem;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  margin-bottom: 0.5rem;
}

.widget a {
  color: var(--text);
}

.widget a:hover {
  color: var(--accent);
}

/* ===========================
   Responsive Utilities
   =========================== */

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

/* ===========================
   Accessibility
   =========================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--bg);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: var(--text);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}