/*
Theme Name: R0zzin Chronicles
Theme URI: https://r0zzin.com
Author: r0zzin - Architect of Chaos
Author URI: https://r0zzin.com
Description: A fantasy-themed WordPress experience blending epic storytelling with chaotic creativity. Built for world-builders, game masters, and architects of imagination. Features custom stat blocks, modular layouts, and a design that breathes life into digital realms.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: r0zzin
Tags: fantasy, gaming, d&d, creative, blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================
   CORE THEME STYLES
   ========================================== */

:root {
  /* Primary Palette - Golden Griffin & Deep Magic */
  --r0z-gold: #E6A925;
  --r0z-gold-light: #F4C654;
  --r0z-gold-dark: #B88619;
  
  --r0z-blue: #2B5F8E;
  --r0z-blue-light: #4A8BC2;
  --r0z-blue-dark: #1A3A5C;
  
  --r0z-crimson: #A73335;
  --r0z-crimson-light: #C94B4D;
  --r0z-crimson-dark: #7A2426;
  
  /* Neutral & Backgrounds */
  --r0z-parchment: #FDF1DC;
  --r0z-parchment-dark: #E8D5B7;
  --r0z-ink: #2C2416;
  --r0z-ink-light: #4A3F2F;
  --r0z-ash: #6B5D4F;
  --r0z-mist: #D4C4B0;
  
  /* Mystical Accents */
  --r0z-ember: #E69A28;
  --r0z-forest: #3A5A40;
  --r0z-midnight: #1E2433;
  --r0z-arcane: #5B4A7C;
  
  /* Typography Scale */
  --font-display: 'Cinzel', 'Trajan Pro', serif;
  --font-heading: 'Quattrocento', 'Georgia', serif;
  --font-body: 'Lora', 'Palatino', serif;
  --font-ui: 'Raleway', 'Gill Sans', sans-serif;
  
  /* Spacing & Rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Effects */
  --shadow-soft: 0 2px 8px rgba(44, 36, 22, 0.1);
  --shadow-raised: 0 4px 16px rgba(44, 36, 22, 0.15);
  --shadow-dramatic: 0 8px 32px rgba(44, 36, 22, 0.25);
  --border-radius: 4px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   BASE STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--r0z-ink);
  background: linear-gradient(135deg, var(--r0z-parchment) 0%, #F5E6D3 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Decorative background texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(44, 36, 22, 0.015) 2px,
      rgba(44, 36, 22, 0.015) 4px
    );
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--r0z-ink);
  margin-bottom: var(--space-sm);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--r0z-gold) 0%, var(--r0z-ember) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  color: var(--r0z-blue-dark);
  border-bottom: 3px solid var(--r0z-gold);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--r0z-crimson);
}

h4 {
  font-size: 1.5rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

h5 {
  font-size: 1.25rem;
  color: var(--r0z-ash);
}

h6 {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--r0z-ash);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--r0z-blue);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--r0z-gold);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--r0z-gold);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */

.site-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content-wrapper {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-raised);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

/* ==========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  border: 2px solid var(--r0z-gold);
  background: linear-gradient(135deg, var(--r0z-gold) 0%, var(--r0z-ember) 100%);
  color: var(--r0z-ink);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.btn::before,
button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before,
button:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dramatic);
  border-color: var(--r0z-ember);
}

.btn-secondary {
  background: transparent;
  color: var(--r0z-blue-dark);
  border-color: var(--r0z-blue);
}

.btn-secondary:hover {
  background: var(--r0z-blue);
  color: white;
}

/* ==========================================
   IMAGES & MEDIA
   ========================================== */

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

figure {
  margin: var(--space-lg) 0;
}

figcaption {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--r0z-ash);
  margin-top: var(--space-xs);
  text-align: center;
}

/* ==========================================
   LISTS
   ========================================== */

ul, ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
  padding-left: var(--space-xs);
}

ul li::marker {
  content: '⚔ ';
  color: var(--r0z-gold);
}

/* ==========================================
   BLOCKQUOTES
   ========================================== */

blockquote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--r0z-ink-light);
  border-left: 4px solid var(--r0z-gold);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  background: rgba(230, 169, 37, 0.05);
  border-radius: var(--border-radius);
  position: relative;
}

blockquote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--r0z-gold);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 10px;
}

/* ==========================================
   CODE BLOCKS
   ========================================== */

code {
  font-family: 'Courier New', monospace;
  background: var(--r0z-midnight);
  color: var(--r0z-gold-light);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background: var(--r0z-midnight);
  color: var(--r0z-parchment);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: var(--space-md) 0;
  border-left: 4px solid var(--r0z-arcane);
}

pre code {
  background: none;
  padding: 0;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Decorative dividers */
.divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--r0z-gold), transparent);
  margin: var(--space-lg) 0;
  border: none;
}

.divider-crimson {
  background: linear-gradient(90deg, transparent, var(--r0z-crimson), transparent);
}

/* ==========================================
   WORDPRESS CORE CLASSES
   ========================================== */

.alignleft {
  float: left;
  margin-right: var(--space-md);
  margin-bottom: var(--space-sm);
}

.alignright {
  float: right;
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

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

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

.wp-caption-text {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--r0z-ash);
  margin-top: var(--space-xs);
}

.sticky {
  border: 2px solid var(--r0z-gold);
  padding: var(--space-md);
  background: rgba(230, 169, 37, 0.05);
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }
  
  .content-wrapper {
    padding: var(--space-md);
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  body {
    background: white;
  }
  
  a::after {
    display: none;
  }
  
  .no-print {
    display: none;
  }
}
