/*
Theme Name: PornManhwa Child
Theme URI: https://porn-manhwa.com
Description: Custom Imperial Violet & Cyber Amber Child Theme for porn-manhwa.com. Built on Madara engine.
Author: PornManhwa Team
Author URI: https://porn-manhwa.com
Template: madara
Version: 1.0.0
Text Domain: madara
*/

/* ==========================================================================
   👑 PORNMANHWA.COM - IMPERIAL VIOLET & CYBER AMBER DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.35);
  --secondary-color: #f59e0b;
  --secondary-hover: #d97706;
  --secondary-glow: rgba(245, 158, 11, 0.35);
  
  /* Backgrounds & Glassmorphism */
  --bg-dark: #090a10;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-header: rgba(9, 10, 16, 0.94);
  --glass-border: rgba(139, 92, 246, 0.2);
  --glass-border-hover: rgba(245, 158, 11, 0.4);
  
  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #f59e0b 100%);
  --grad-hover: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #d97706 100%);
  --grad-card: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

/* Global resets & typography */
body, html {
  background-color: var(--bg-dark) !important;
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090a10;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Links */
a {
  color: var(--primary-color);
  transition: all 0.25s ease;
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--secondary-color);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Madara Elements Overrides */
.site-content {
  background-color: var(--bg-dark) !important;
}

/* Cards & Comic Items */
.page-item-detail,
.manga-slider .slider__item,
.c-tabs-item,
.entry-content-wrap {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.page-item-detail:hover,
.c-tabs-item:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover) !important;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15) !important;
}

/* Badges & Tags */
.genres__item a,
.c-blog__heading .meta-item,
.post-title .badge,
.manga-label,
.manga-badge {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-block;
}

.genres__item a:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

/* Chapter Badges & Lists */
.chapter-item {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin-bottom: 6px !important;
  transition: all 0.2s ease !important;
}

.chapter-item:hover {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  transform: translateX(4px);
}

.chapter-item a {
  color: #e2e8f0 !important;
  font-weight: 500;
}

.chapter-item a:hover {
  color: var(--secondary-color) !important;
}

.chapter-release-date {
  color: var(--text-muted) !important;
  font-size: 12px;
}

/* Primary Action Buttons */
.btn.btn-primary,
.c-btn.c-btn_style-1,
input[type="submit"],
.read-now-btn {
  background: var(--grad-primary) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px var(--primary-glow) !important;
  transition: all 0.3s ease !important;
}

.btn.btn-primary:hover,
.c-btn.c-btn_style-1:hover,
input[type="submit"]:hover,
.read-now-btn:hover {
  background: var(--grad-hover) !important;
  box-shadow: 0 6px 20px var(--secondary-glow) !important;
  transform: translateY(-2px);
}

/* Rating Stars */
.rating-symbol-foreground {
  color: var(--secondary-color) !important;
}

/* Search Box */
.main-navigation .search-box input[type="text"],
.search-form input[type="search"] {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  border-radius: 8px !important;
}

.main-navigation .search-box input[type="text"]:focus,
.search-form input[type="search"]:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 12px var(--primary-glow) !important;
}

/* Footer Overrides */
footer.site-footer {
  background: #06070a !important;
  border-top: 1px solid var(--glass-border) !important;
  color: var(--text-secondary);
}

/* ==========================================================================
   🃏 HONEYTOON COMIC CARD MASTER ARCHITECTURE
   ========================================================================== */
.ht-comic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none !important;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.ht-comic-card:hover {
  transform: translateY(-4px);
}

.ht-card-media {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #12131c;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.ht-card-link-wrap {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  position: relative;
}

.ht-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.ht-comic-card:hover .ht-card-media img {
  transform: scale(1.06);
}

/* TOP BADGES */
.ht-card-badges-top {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}
.ht-badge-end {
  background: #0284c7;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2.5px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* 👑 SMOOTH GRADIENT OVERLAY & 2-LINE TITLE CLAMP */
.ht-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(8,9,13,0.98) 0%, rgba(8,9,13,0.85) 55%, rgba(8,9,13,0.3) 85%, transparent 100%);
  padding: 26px 10px 8px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.ht-card-rating {
  font-size: 10.5px;
  font-weight: 800;
  color: #fbbf24 !important;
  line-height: 1;
}

.ht-card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}
.ht-comic-card:hover .ht-card-title {
  color: #ffdb26 !important;
}

.ht-card-genres {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Action Buttons (Read Ch. 1 & Latest) */
.ht-card-actions-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 4px;
}
.ht-card-act-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 7px;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;
}
.ht-btn-icon {
  font-size: 10.5px;
  line-height: 1;
  flex-shrink: 0;
}
.ht-btn-verb {
  display: inline;
}
.ht-btn-first {
  background: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
}
.ht-btn-first:hover {
  background: rgba(139, 92, 246, 0.35) !important;
  border-color: #a78bfa !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}
.ht-btn-latest {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.28) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
}
.ht-btn-latest:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: #f59e0b !important;
  color: #000000 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

@media (max-width: 768px) {
  .ht-card-actions-bar {
    gap: 4px;
    margin-top: 3px;
  }
  .ht-card-act-btn {
    font-size: 10px;
    font-weight: 700;
    padding: 5px 2px;
    border-radius: 6px;
    gap: 2px;
  }
  .ht-btn-icon {
    font-size: 9px;
  }
  .ht-btn-verb {
    display: none !important;
  }
}
