/*
Theme Name: PathikTV সাহিত্য
Theme URI: https://pathiktv.com/sahitya
Author: PathikTV Media Center
Author URI: https://pathiktv.com
Description: A modern Bangla literary publishing, reading and community WordPress theme. লেখা, পাঠ ও সৃষ্টিশীলতার ডিজিটাল ঠিকানা। Features Custom Post Types, Front-end Writing Submission, Premium Membership, bKash/Nagad/Rocket/Mastercard Payment Gateway Architecture, Canvas Photo Card Generator, AJAX Likes & Bookmarks, Dark Mode, and Bangla Typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: pathiktv-sahitya
Domain Path: /languages
Tags: blog, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, accessibility-ready, dark-mode, bangla, literature, membership
*/

/* ==========================================================================
   CSS Variables & Typography System (Bangla & English)
   ========================================================================== */
:root {
  --font-serif: 'Noto Serif Bengali', 'SolaimanLipi', 'Kalpurush', Georgia, serif;
  --font-sans: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Noto Serif Bengali', 'Galada', 'Atma', serif;
  
  --bg-primary: #FAF8F5;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F2EFE9;
  --bg-card: #FFFFFF;
  --bg-surface: #F8F6F0;
  
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #78716C;
  --text-inverted: #FFFFFF;
  
  --accent-primary: #991B1B; /* Literary Deep Crimson */
  --accent-hover: #7F1D1D;
  --accent-secondary: #D97706; /* Warm Ochre */
  --accent-gold: #B45309;
  
  --border-subtle: #E7E5E4;
  --border-strong: #D6D3D1;
  --border-focus: #991B1B;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --content-width: 760px;
  --container-max: 1240px;
}

[data-theme="dark"] {
  --bg-primary: #121110;
  --bg-secondary: #1C1A18;
  --bg-tertiary: #252320;
  --bg-card: #1E1C1A;
  --bg-surface: #292622;
  
  --text-primary: #F5F5F4;
  --text-secondary: #D6D3D1;
  --text-muted: #A8A29E;
  --text-inverted: #121110;
  
  --accent-primary: #EF4444;
  --accent-hover: #F87171;
  --accent-secondary: #F59E0B;
  --accent-gold: #FBBF24;
  
  --border-subtle: #2E2B27;
  --border-strong: #44403C;
  --border-focus: #EF4444;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.pathiktv-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.pathiktv-article-container {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

/* Links */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.btn-gold {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #B45309 0%, #92400E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* Badges */
.badge-category {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  color: var(--accent-primary);
  transition: all 0.2s;
}

.badge-category:hover {
  background-color: var(--accent-primary);
  color: #FFFFFF;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #FFFFFF;
}

/* Card Styling */
.literary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.literary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* Reader Content Proportional Formatting */
.writing-body {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-primary);
}

.writing-body p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.writing-body blockquote {
  border-left: 4px solid var(--accent-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--bg-tertiary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.18rem;
  position: relative;
}

/* Paywall Protected Box */
.premium-paywall-box {
  position: relative;
  margin-top: 2rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.2) 0%, var(--bg-card) 100%);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.blur-preview-text {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .writing-body { font-size: 1.05rem; line-height: 1.85; }
  .pathiktv-container { padding-left: 1rem; padding-right: 1rem; }
}
