/*
Theme Name: The Creative Minds
Theme URI: https://www.instagram.com/manpreetblogger
Author: Manpreet Singh
Author URI: https://www.instagram.com/manpreetblogger
Description: The Creative Minds — a clean, modern WordPress theme for agencies and creators. Building smarter websites. Created by Manpreet Singh.
Version: 1.0.4
Requires at least: 5.8
Tested up to: 6.5
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: the-creative-minds
Tags: blog, agency, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ---------- Base ---------- */
:root {
  --tcm-bg: #ffffff;
  --tcm-text: #1a1a1a;
  --tcm-muted: #5b5b5b;
  --tcm-border: #e7e7e7;
  --tcm-primary: #e8a020;
  --tcm-dark: #141414;
  --tcm-radius: 14px;
  --tcm-max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--tcm-text);
  background: var(--tcm-bg);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--tcm-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--tcm-text);
}

.tcm-container {
  width: 100%;
  max-width: var(--tcm-max);
  margin: 0 auto;
  padding: 0 24px;
}

.tcm-skip-link {
  position: absolute;
  left: -9999px;
}
.tcm-skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 8px;
}

/* ---------- Header ---------- */
.tcm-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tcm-border);
}
.tcm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}
.tcm-branding { display: flex; align-items: center; gap: 12px; }
.tcm-site-title {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
.tcm-site-title a { color: var(--tcm-text); text-decoration: none; }
.tcm-site-description { margin: 0; font-size: 0.85rem; color: var(--tcm-muted); }

.tcm-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.tcm-nav a {
  color: var(--tcm-text);
  font-size: 0.95rem;
  font-weight: 500;
}
.tcm-nav a:hover { color: var(--tcm-primary); text-decoration: none; }

/* ---------- Hero ---------- */
.tcm-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.tcm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%);
}
.tcm-hero-content { position: relative; z-index: 2; max-width: 720px; }
.tcm-hero-title {
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 8px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.tcm-hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.tcm-btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid #fff;
  border-radius: 6px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.tcm-btn-outline:hover {
  background: #fff;
  color: var(--tcm-dark);
  text-decoration: none;
}

/* ---------- Layout ---------- */
.tcm-main { padding: 64px 0; }
.tcm-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

/* ---------- Posts ---------- */
.tcm-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.tcm-card {
  border: 1px solid var(--tcm-border);
  border-radius: var(--tcm-radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tcm-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.tcm-card-thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.tcm-card-body { padding: 20px 22px 24px; }
.tcm-card-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tcm-muted);
  margin-bottom: 8px;
}
.tcm-card-title { font-size: 1.25rem; margin: 0 0 10px; }
.tcm-card-title a { color: var(--tcm-text); }
.tcm-card-title a:hover { color: var(--tcm-primary); text-decoration: none; }
.tcm-card-excerpt { color: var(--tcm-muted); font-size: 0.95rem; margin: 0 0 16px; }
.tcm-readmore { font-weight: 600; font-size: 0.9rem; }

/* ---------- Single / Page ---------- */
.tcm-entry { max-width: 760px; }
.tcm-entry-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; }
.tcm-entry-meta { color: var(--tcm-muted); font-size: 0.9rem; margin-bottom: 28px; }
.tcm-entry-thumb { border-radius: var(--tcm-radius); overflow: hidden; margin-bottom: 32px; }
.tcm-entry-content p { margin: 0 0 1.3em; }
.tcm-entry-content h2 { margin: 1.6em 0 0.6em; }
.tcm-entry-content img { border-radius: var(--tcm-radius); margin: 1.5em 0; }
.tcm-entry-content blockquote {
  border-left: 4px solid var(--tcm-primary);
  margin: 1.5em 0;
  padding: 0.4em 1.2em;
  color: var(--tcm-muted);
  font-style: italic;
}

/* ---------- Sidebar ---------- */
.tcm-sidebar .widget {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--tcm-border);
}
.tcm-sidebar .widget:last-child { border-bottom: none; }
.tcm-sidebar .widget-title { font-size: 1.1rem; margin: 0 0 14px; }
.tcm-sidebar ul { list-style: none; margin: 0; padding: 0; }
.tcm-sidebar li { margin-bottom: 10px; }

/* ---------- Pagination ---------- */
.tcm-pagination { margin-top: 48px; display: flex; gap: 10px; flex-wrap: wrap; }
.tcm-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--tcm-border);
  border-radius: 8px;
  color: var(--tcm-text);
}
.tcm-pagination .page-numbers.current {
  background: var(--tcm-primary);
  border-color: var(--tcm-primary);
  color: #fff;
}

/* ---------- Footer ---------- */
.tcm-site-footer {
  background: var(--tcm-dark);
  color: #cfcfcf;
  padding: 48px 0 28px;
  margin-top: 48px;
}
.tcm-footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}
.tcm-site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1.05rem; }
.tcm-site-footer a { color: #fff; }
.tcm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.tcm-credit a { color: var(--tcm-primary); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tcm-layout { grid-template-columns: 1fr; }
  .tcm-nav ul { gap: 16px; }
}
@media (max-width: 680px) {
  .tcm-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tcm-hero { min-height: 380px; }
}

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--tcm-muted); text-align: center; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }
