/*
Theme Name: PriscillaTells Child
Template: kadence
Author: Priscilla Puspita
Version: 1.0.0
Description: Custom child theme for priscillatells.com based on Kadence
*/

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Instrument+Serif:ital@0;1&family=Syne:wght@400..800&display=swap');

/* ============================================
   DESIGN TOKENS - CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Background Colors */
    --bg: #0a080e;
    --bg-light: #14121a;
    --bg-lighter: #1e1b26;
    
    /* Primary Brand Colors */
    --purple: #9b5de5;
    --purple-light: #b07ff0;
    --purple-dark: #7a3ec7;
    
    /* Text Colors */
    --text: #e8e2f4;
    --text-bright: #ffffff;
    --text-dim: #c4bdd9;
    
    /* Muted/Secondary */
    --muted: #8a7aaa;
    --muted-light: #a69bc4;
    
    /* Accent */
    --lavender: #c9a8f5;
    --lavender-light: #dcc4f8;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
    background: #060408;
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Top */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(154, 123, 234, 0.1);
}

/* Logo Column */
.footer-logo-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo-link {
    display: block;
    text-decoration: none;
}

.footer-logo {
    width: 200px;
    height: 40px;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
    max-width: 280px;
}

/* Links Columns */
.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin: 0 0 var(--space-xs) 0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--lavender);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.footer-tagline-italic {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--lavender);
    margin: 0;
    opacity: 0.8;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: var(--space-xl) var(--space-md) var(--space-md);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Child theme custom styles go below this line */

/* ============================================
   SINGLE POST HERO STYLES
   ============================================ */

.single-hero {
    background: var(--bg-light);
    padding: 28px 20px;
    border-bottom: 1px solid var(--bg-lighter);
}

.single-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Breadcrumb */
.single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: var(--lavender);
}

.breadcrumb-item.current {
    color: var(--text-dim);
    pointer-events: none;
}

.breadcrumb-separator {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
    opacity: 0.6;
}

/* Meta Row - Category Pill + Location/Year */
.single-meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--purple);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.location-year {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--muted);
}

/* Case Number */
.case-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    opacity: 0.7;
}

/* Post Title */
.single-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: var(--space-sm) 0;
}

.title-line-bold {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.1;
    text-transform: uppercase;
}

.title-line-italic {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-style: italic;
    font-weight: 400;
    color: var(--purple-light);
    line-height: 1.2;
}

/* Author Meta Row */
.single-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.author-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.author-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple);
    color: var(--text-bright);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50%;
}

.author-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.post-date {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
}

.post-date::before {
    content: "•";
    margin: 0 0.5rem;
    color: var(--muted);
    opacity: 0.5;
}

/* Author Badges */
.author-badges {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    color: var(--text-bright);
}

.status-badge {
    /* Background color set inline via PHP */
}

.read-time-badge {
    background: var(--purple);
}

/* Single Hero Responsive */
@media (max-width: 768px) {
    .single-hero {
        padding: 24px 16px;
    }
    
    .single-author-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-badges {
        width: 100%;
    }
}

/* ============================================
   SINGLE POST BODY STYLES (Two Column)
   ============================================ */

.single-body {
    padding: var(--space-xl) 20px;
    background: var(--bg);
}

.single-body-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: var(--space-2xl);
    align-items: start;
}

/* LEFT COLUMN: Article Content */
.single-content {
    min-width: 0;
}

/* Lede Paragraph */
.case-lede {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--lavender);
    line-height: 1.6;
    margin: 0 0 var(--space-lg) 0;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--bg-lighter);
}

/* Featured Image */
.single-featured-image {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-featured-image.placeholder {
    aspect-ratio: 16 / 9;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--muted);
}

/* Article Content Typography */
.single-article-content {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.single-article-content p {
    margin-bottom: var(--space-md);
}

.single-article-content h2,
.single-article-content h3 {
    font-family: var(--font-display);
    color: var(--text-bright);
    margin: var(--space-xl) 0 var(--space-md) 0;
}

.single-article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.single-article-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Section Labels within content */
.single-article-content h2::before,
.single-article-content h3::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--purple);
    margin-bottom: var(--space-xs);
}

/* Blockquote Styling */
.single-article-content blockquote {
    border-left: 2px solid var(--purple);
    padding: 8px 14px;
    margin: var(--space-lg) 0;
    background: rgba(155, 93, 229, 0.05);
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--lavender);
}

.single-article-content blockquote p {
    margin: 0;
}

/* Post Tags */
.single-tags {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--bg-lighter);
}

.tags-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tag-link:hover {
    color: var(--lavender);
}

/* Share Buttons */
.single-share {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.share-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-buttons {
    display: flex;
    gap: var(--space-xs);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-light);
    border: 1px solid var(--bg-lighter);
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--bg-lighter);
    border-color: var(--purple);
}

.share-icon {
    width: 16px;
    height: 16px;
}

.share-copy {
    position: relative;
}

.share-copy .copied-text {
    display: none;
}

.share-copy.copied .copy-text {
    display: none;
}

.share-copy.copied .copied-text {
    display: inline;
}

/* RIGHT COLUMN: Sidebar */
.single-sidebar {
    position: sticky;
    top: var(--space-lg);
}

.sidebar-section {
    margin-bottom: var(--space-xl);
}

.sidebar-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple);
    margin: 0 0 var(--space-md) 0;
}

/* Related Posts Cards */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.related-card {
    display: block;
    text-decoration: none;
    padding: var(--space-sm);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.related-card:hover {
    border-color: var(--purple);
    background: var(--bg-lighter);
}

.related-category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--purple-light);
    margin-bottom: var(--space-xs);
}

.related-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.3;
}

.related-meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--muted);
}

.no-related {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
}

/* Author Card */
.author-card {
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.author-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.author-card-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple);
    color: var(--text-bright);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-card-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 0;
}

.author-card-role {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--muted);
    margin: 2px 0 0 0;
}

.author-card-quote {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--lavender);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    line-height: 1.5;
}

/* Single Body Responsive */
@media (max-width: 900px) {
    .single-body-container {
        grid-template-columns: 1fr;
    }
    
    .single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .single-sidebar {
        grid-template-columns: 1fr;
    }
    
    .case-lede {
        font-size: 1.1rem;
    }
}

/* ============================================
   SINGLE POST NAVIGATION STRIP STYLES
   ============================================ */

.single-navstrip {
    background: var(--bg-light);
    border-top: 1px solid var(--bg-lighter);
}

.single-navstrip-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav-cell {
    padding: var(--space-lg) var(--space-xl);
}

.nav-prev {
    border-right: 1px solid var(--bg-lighter);
}

.nav-next {
    text-align: right;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.9;
}

.nav-link:hover .nav-title {
    color: var(--purple-light);
}

.nav-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.nav-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.nav-category {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--muted);
}

/* Nav Strip Responsive */
@media (max-width: 768px) {
    .single-navstrip-container {
        grid-template-columns: 1fr;
    }
    
    .nav-cell {
        padding: var(--space-md);
    }
    
    .nav-prev {
        border-right: none;
        border-bottom: 1px solid var(--bg-lighter);
    }
    
    .nav-next {
        text-align: left;
    }
}

/* ============================================
   FULL WIDTH SINGLE POST OVERRIDE
   ============================================ */

.single .content-bg,
.single .site-container {
    max-width: 100% !important;
    padding: 0 !important;
    background: #0a080e !important;
}

body.single-post {
    background: #0a080e !important;
}

body.single-post .site,
body.single-post .content-area,
body.single-post .kadence-inner-column-inner,
body.single-post #primary,
body.single-post .entry-content-wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #0a080e !important;
}

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

#colophon,
.site-footer,
footer {
    background: #060408 !important;
    color: #e8e2f4 !important;
}

.site-footer * {
    color: #8a7aaa !important;
}

.site-footer a:hover {
    color: #c9a8f5 !important;
}

/* ============================================
   SINGLE POST HEADING STYLES
   ============================================ */

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-body h2,
.single-body h3,
.single-hero h2,
.single-hero h3,
.wp-block-heading,
article h2,
article h3,
.single .entry-content h2,
.single .entry-content h3 {
    color: #c9a8f5 !important;
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
}

/* ============================================
   LIGHT MODE STYLES
   ============================================ */

body.light-mode {
    --bg: #f5f5f5;
    --text: #1a1a2e;
    --surface: #ffffff;
    --muted: #555555;
    background: #f5f5f5 !important;
    color: #1a1a2e !important;
}

body.light-mode .site-footer,
body.light-mode #colophon {
    background: #e8e8e8 !important;
}

body.light-mode .single-hero,
body.light-mode .single-body {
    background: #f5f5f5 !important;
}

body.light-mode .site-footer * {
    color: #555555 !important;
}

body.light-mode .site-footer a:hover {
    color: #9b5de5 !important;
}

/* ============================================
   HEADING COLOR OVERRIDE FOR SINGLE POSTS
   ============================================ */

body.single-post .single-article-content h2,
body.single-post .single-article-content h3,
body.single-post .single-article-content h4,
body.single-post .single-content h2,
body.single-post .single-content h3,
body.single-post .single-content h4,
.single-article-content h2,
.single-article-content h3,
.single-article-content h4,
.single-article-content h5,
.single-article-content h6 {
    color: #c9a8f5 !important;
    font-family: 'Syne', sans-serif !important;
    font-weight: 700 !important;
}