/*
Theme Name: Adolfo Benjamin Kunjuk - Premium
Theme URI: https://adolfokunjuk.com
Author: Manus
Author URI: https://manus.im
Description: Premium editorial theme for Adolfo Benjamin Kunjuk's literary platform
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kunjuk-premium
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/
/* ============================================
   ADOLFO BENJAMIN KUNJUK - PREMIUM THEME
   Editorial Design System
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', 'Georgia', serif;
  background: #fafaf8;
  color: #2c2c2c;
  line-height: 1.7;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  color: #0a0a0a;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

a {
  color: #8b0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d4af37;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER & NAVIGATION */
header {
  background: #0a0a0a;
  color: #fafaf8;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d4af37;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: #fafaf8;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #d4af37;
  border-bottom-color: #d4af37;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fafaf8;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><text x="10" y="50" font-size="80" fill="rgba(212,175,55,0.03)" font-family="serif">§</text></pattern></defs><rect width="1200" height="600" fill="url(%23pattern)"/></svg>');
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fafaf8;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-style: italic;
  color: #d4af37;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: #e0e0e0;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: #d4af37;
  color: #0a0a0a;
  padding: 1rem 2.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.cta-button:hover {
  background: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}

/* BOOKS SECTION */
.books-section {
  padding: 6rem 2rem;
  background: #fafaf8;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.book-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.book-cover {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #d4af37 0%, #8b0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  overflow: hidden;
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.book-year {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #0a0a0a;
}

.book-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.book-genre {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  color: #8b0000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.book-link {
  color: #8b0000;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.book-link:hover {
  color: #d4af37;
}

/* READING ROOM SECTION */
.reading-room {
  background: linear-gradient(135deg, #f5f3f0 0%, #fafaf8 100%);
  padding: 6rem 2rem;
}

.excerpts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.excerpt-card {
  background: white;
  padding: 2.5rem;
  border-left: 4px solid #d4af37;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.excerpt-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transform: translateX(5px);
}

.excerpt-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #0a0a0a;
}

.excerpt-source {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  color: #8b0000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.excerpt-text {
  font-style: italic;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  border-left: 3px solid #d4af37;
  padding-left: 1.5rem;
}

.excerpt-link {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8b0000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* AUTHOR SECTION */
.author-section {
  background: #0a0a0a;
  color: #fafaf8;
  padding: 6rem 2rem;
}

.author-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.author-bio h2 {
  color: #fafaf8;
  margin-bottom: 2rem;
}

.author-bio p {
  color: #d0d0d0;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.author-image {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(212,175,55,0.2);
}

/* FOOTER */
footer {
  background: #0a0a0a;
  color: #999;
  padding: 3rem 2rem;
  border-top: 1px solid #333;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #d4af37;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section a {
  display: block;
  margin-bottom: 0.5rem;
  color: #999;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #d4af37;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 1.5rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .author-content {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

/* REMOVE DEBUG STYLES */
[style*="border: 2px solid lime"],
[style*="border: 2px dashed lime"],
[style*="border: 2px solid #00ff00"],
[style*="border: 2px dashed #00ff00"],
[style*="background: rgba(0, 255, 0"],
[style*="outline: 2px solid lime"] {
  border: none !important;
  background: transparent !important;
  outline: none !important;
}

.debug-box,
.debug-container,
[class*="debug"] {
  border: none !important;
  background: transparent !important;
}
