/*
Theme Name: Claude Theme
Theme URI: https://denyschainyk.com
Author: Denys Chainyk
Description: A clean, minimal WordPress theme inspired by Claude.ai design system
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: claude-theme
*/

/* =============================================
   CLAUDE.AI DESIGN SYSTEM — WORDPRESS THEME
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Tiempos+Headline:wght@400;500&family=Styrene+A:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* --- CSS Variables (Claude palette) --- */
:root {
  --bg-primary:       #1a1915;
  --bg-secondary:     #211f1a;
  --bg-card:          #252320;
  --bg-input:         #2a2825;
  --surface-hover:    #302e2a;

  --accent-orange:    #da7756;
  --accent-orange-dim:#c06040;
  --accent-warm:      #e8956d;

  --text-primary:     #ede8df;
  --text-secondary:   #a09a8e;
  --text-muted:       #6b6560;
  --text-link:        #da7756;

  --border-subtle:    rgba(255,255,255,0.07);
  --border-medium:    rgba(255,255,255,0.12);

  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        18px;
  --radius-xl:        24px;

  --font-display:     'Lora', Georgia, serif;
  --font-body:        'DM Sans', system-ui, sans-serif;
  --font-mono:        'JetBrains Mono', 'Fira Code', monospace;

  --shadow-card:      0 2px 12px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-hover:     0 8px 32px rgba(0,0,0,0.5);

  --sidebar-width:    260px;
  --content-max:      720px;
  --transition:       0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.site-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  padding: 20px 0;
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 8px 20px 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 32px; height: 32px;
  background: var(--accent-orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* New Chat button */
.sidebar-new-chat {
  margin: 0 12px 16px;
}

.btn-new-chat {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-new-chat:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-new-chat svg { opacity: 0.7; flex-shrink: 0; }

/* Sidebar nav */
.sidebar-nav { flex: 1; padding: 0 8px; }

.sidebar-section-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px 4px;
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: all var(--transition);
  line-height: 1.4;
}

.sidebar-nav li a:hover,
.sidebar-nav li.current-menu-item a {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.sidebar-nav li.current-menu-item a {
  color: var(--accent-warm);
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 12px 8px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar-user:hover { background: var(--surface-hover); }

.sidebar-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), #e07060);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* --- Main Content --- */
.site-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Top Bar --- */
.site-topbar {
  height: 56px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  background: rgba(26,25,21,0.85);
  backdrop-filter: blur(12px);
  z-index: 50;
  gap: 12px;
}

.topbar-breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
}

.topbar-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.topbar-breadcrumb a:hover { color: var(--text-primary); }

.topbar-spacer { flex: 1; }

.topbar-actions { display: flex; gap: 8px; align-items: center; }

.topbar-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.topbar-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.topbar-btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }

.topbar-btn-primary {
  background: var(--accent-orange);
  color: #fff;
  font-weight: 500;
}
.topbar-btn-primary:hover { background: var(--accent-warm); }

/* --- Content Area --- */
.content-area {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 32px 80px;
  width: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 2rem; margin-bottom: 0.75em; }
h2 { font-size: 1.5rem; margin-bottom: 0.65em; margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-bottom: 0.5em; margin-top: 1.5em; }
h4 { font-size: 1rem; margin-bottom: 0.4em; margin-top: 1.2em; font-family: var(--font-body); font-weight: 500; }

p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1.1em;
}

a { color: var(--text-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-warm); }

strong { font-weight: 500; color: var(--text-primary); }
em { font-style: italic; color: var(--text-secondary); }

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-warm);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-primary);
}

/* Blockquote */
blockquote {
  border-left: 2px solid var(--accent-orange);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

blockquote p { color: var(--text-secondary); margin: 0; font-style: italic; }

/* Lists */
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; font-size: 15px; line-height: 1.7; }

hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2em 0;
}

/* =============================================
   CARDS / POSTS
   ============================================= */

/* Post list */
.post-list { display: flex; flex-direction: column; gap: 2px; }

.post-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.post-card:hover {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.post-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-card-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Single post */
.entry-header { margin-bottom: 2.5em; }

.entry-title {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.6em;
}

.entry-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.entry-meta a { color: var(--text-muted); }
.entry-meta a:hover { color: var(--text-secondary); }

.entry-content { font-size: 15px; line-height: 1.8; }

/* Tags */
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin: 1.5em 0; }

.tag {
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.tag:hover {
  background: var(--surface-hover);
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

/* =============================================
   WELCOME / HOME HERO
   ============================================= */

.home-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.home-hero-icon {
  width: 52px; height: 52px;
  background: var(--accent-orange);
  border-radius: 14px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(218,119,86,0.3);
}

.home-hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.home-hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* Quick-action cards */
.action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 32px;
}

.action-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  text-decoration: none;
  display: block;
}

.action-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.action-card-icon {
  font-size: 18px;
  margin-bottom: 8px;
}

.action-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 400;
}

/* =============================================
   SEARCH BAR (decorative)
   ============================================= */

.search-bar-wrap {
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  transition: border-color var(--transition);
}

.search-bar-wrap:focus-within { border-color: var(--accent-orange); }

.search-bar-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-primary);
  caret-color: var(--accent-orange);
}

.search-bar-wrap input::placeholder { color: var(--text-muted); }

.search-submit {
  width: 32px; height: 32px;
  background: var(--accent-orange);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-submit:hover { background: var(--accent-warm); }
.search-submit svg { color: #fff; }

/* =============================================
   COMMENTS
   ============================================= */

.comments-area {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--border-subtle);
}

.comments-title {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.comment-author { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.comment-metadata { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Comment form */
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 10px;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent-orange); }

.comment-form textarea { resize: vertical; min-height: 100px; }

.comment-form label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; display: block; }

.comment-form input[type="submit"] {
  width: auto;
  background: var(--accent-orange);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: background var(--transition);
}

.comment-form input[type="submit"]:hover { background: var(--accent-warm); }

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 3em;
}

.page-numbers {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  margin-top: auto;
  padding: 24px 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text-secondary); }

/* =============================================
   HAMBURGER / MOBILE
   ============================================= */

.sidebar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  color: var(--text-secondary);
  margin-right: 8px;
}

@media (max-width: 768px) {
  .site-sidebar {
    transform: translateX(-100%);
  }
  .site-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.6);
  }
  .site-main { margin-left: 0; }
  .sidebar-toggle { display: flex; align-items: center; }
  .content-area { padding: 28px 18px 60px; }
  .action-cards { grid-template-columns: 1fr; }
  .home-hero-title { font-size: 1.7rem; }
  .site-footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* =============================================
   SELECTION
   ============================================= */

::selection { background: rgba(218,119,86,0.25); color: var(--text-primary); }
