/*
Theme Name: Vespellar Archive
Author: Antigravity
Version: 4.1
Description: UNIFIED DESIGN. Final synchronization of the post-detail bottom links (previous/next) with the high-end Nexus aesthetic. All typography and interactions are now consistent.
*/

:root {
    --bg-color: #010102;
    --acc-indigo: #818cf8;
    --acc-rose: #f43f5e;
    --accent-grad: linear-gradient(135deg, #a5b4fc 0%, #fb7185 100%);
    --font-serif: 'Playfair Display', serif;
}

/* Base Reset & Scale Up */
body { 
    background-color: var(--bg-color); 
    color: white; 
    font-family: 'Outfit', sans-serif; 
    margin: 0; 
    line-height: 1.9; 
    overflow-x: hidden; 
    font-size: 18px; 
    background-image: radial-gradient(circle at 50% -20%, rgba(13, 13, 18, 1) 0%, rgba(1, 1, 2, 1) 100%);
}
::selection { background: var(--acc-rose); color: white; }
a { color: inherit !important; text-decoration: none !important; }

/* Navigation */
#main-nav { 
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; 
    padding: 1.2rem 0; 
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 4rem; display: flex; justify-content: space-between; align-items: center; }

/* Logo Sync with Rotation */
.logo { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 1rem !important; }
.logo-icon { 
    width: 2.5rem; height: 2.5rem; background: white; border-radius: 35% !important; 
    display: flex !important; align-items: center !important; justify-content: center !important; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='black'%3E%3Cpath d='M 50 82 L 85 20 Q 50 40 15 20 Z' /%3E%3C/svg%3E");
    background-size: 55%; background-repeat: no-repeat; background-position: center; 
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}
.logo-text { font-family: var(--font-serif); font-style: italic; font-weight: 800; font-size: 1.6rem; color: white !important; }
.logo:hover .logo-icon { transform: scale(1.1) rotate(360deg); box-shadow: 0 0 20px rgba(255,255,255,0.2); }

/* Perfect v3.9 Space Balance */
.archive-container, .single-post-container { 
    max-width: 1100px; 
    margin: 11rem auto 10rem auto; 
    padding: 0 4rem; 
}
.badge-label { 
    display: inline-block; padding: 0.5rem 1.4rem; border-radius: 100px; 
    background: rgba(129, 140, 248, 0.08); border: 1px solid rgba(129, 140, 248, 0.15); 
    color: var(--acc-indigo); font-size: 9px; font-weight: 800; letter-spacing: 0.55em; text-transform: uppercase; margin-bottom: 1.2rem; 
}
.archive-container h1 { font-size: 5.8rem; font-family: var(--font-serif); font-style: italic; margin-bottom: 6rem; line-height: 0.9; }

/* Post Cards */
.post-card { display: block; padding-bottom: 5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 5rem; }
.post-meta { color: var(--acc-indigo); font-size: 10px; font-weight: 800; letter-spacing: 0.45em; text-transform: uppercase; margin-bottom: 1.8rem; opacity: 0.9; }
.post-tag { color: var(--acc-rose); font-weight: 900; margin-left: 2rem; }
.post-card h2 { 
    font-size: 3.2rem; font-family: var(--font-serif); font-style: italic; margin: 1.5rem 0; 
    background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    display: inline-block; transition: all 0.5s ease;
}
.read-more { font-size: 9px; font-weight: 800; letter-spacing: 0.6em; color: var(--acc-indigo) !important; text-transform: uppercase; opacity: 0.4; }

/* [v4.1 Unified Bottom Links] */
.post-navigation { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 4rem; margin-top: 6rem; display: flex; justify-content: space-between; }
.nav-previous a, .nav-next a { font-size: 9px; font-weight: 800; letter-spacing: 0.5em; text-transform: uppercase; color: white !important; opacity: 0.4; transition: all 0.5s ease; }
.nav-previous a:hover, .nav-next a:hover { opacity: 1; color: var(--acc-indigo) !important; text-shadow: 0 0 10px rgba(129, 140, 248, 0.5); }

.nav-links { display: flex; gap: 4rem; }
.nav-link { font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 0.5em !important; opacity: 0.6; color: white !important; }

/* Single Post Detail Extra */
.single-post-header { margin-bottom: 6rem; }
.single-post-content { font-size: 1.1rem; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 2rem 0; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.single-post-content h1, .single-post-content h2, .single-post-content h3 { font-family: var(--font-serif); font-style: italic; margin-top: 3rem; margin-bottom: 1.5rem; line-height: 1.1; }
.single-post-content h1 { font-size: 4rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.single-post-content h2 { font-size: 2.8rem; border-left: 3px solid var(--acc-rose); padding-left: 2rem; }
.single-post-content p { margin-bottom: 2rem; opacity: 0.9; }

.single-post-footer { margin-top: 8rem; padding-top: 4rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.tag-label { font-size: 9px; font-weight: 800; letter-spacing: 0.5em; color: rgba(255, 255, 255, 0.3); margin-right: 1rem; }
.single-post-footer a { color: var(--acc-rose) !important; font-weight: 700; margin-right: 1.5rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-container, .archive-container, .single-post-container { padding: 0 2rem; }
    .archive-container h1 { font-size: 4rem; }
    .single-post-content h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .nav-container { padding: 0 1.5rem; flex-direction: column; gap: 1.5rem; text-align: center; }
    #main-nav { padding: 1.5rem 0; position: relative; backdrop-filter: none; background: rgba(0, 0, 0, 0.9); }
    .logo { margin-bottom: 0.5rem; }
    .nav-links { gap: 1.5rem; justify-content: center; width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 1rem; }
    .nav-link { font-size: 10px !important; letter-spacing: 0.3em !important; }
    
    .archive-container, .single-post-container { margin: 4rem auto 5rem auto; padding: 0 1.5rem; }
    .archive-container h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 3rem; }
    
    .post-card { padding-bottom: 3rem; margin-bottom: 3rem; }
    .post-card h2 { font-size: 1.8rem; margin: 1rem 0; display: block; }
    .post-meta { letter-spacing: 0.25em; font-size: 9px; margin-bottom: 1.2rem; }
    .post-tag { margin-left: 1rem; }
    
    .badge-label { padding: 0.4rem 1rem; font-size: 8px; letter-spacing: 0.35em; margin-bottom: 1rem; }
    
    /* Single Details Mobile */
    .single-post-header { margin-bottom: 3rem; }
    .single-post-content { font-size: 1rem; line-height: 1.7; }
    .single-post-content h1 { font-size: 2.2rem; }
    .single-post-content h2 { font-size: 1.8rem; padding-left: 1.5rem; }
    .single-post-footer { margin-top: 4rem; padding-top: 2.5rem; }
    
    .post-navigation { flex-direction: column; gap: 2rem; padding-top: 2rem; margin-top: 3rem; text-align: center; }
    .nav-previous a, .nav-next a { font-size: 8px; display: block; }
}

@media (max-width: 480px) {
    .archive-container h1 { font-size: 2.2rem; }
    .post-card h2 { font-size: 1.5rem; }
    .single-post-content h1 { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════════════
   POST STATS BADGES  (single post header)
   ═══════════════════════════════════════════════════════ */
.post-stats {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(129, 140, 248, 0.06);
    border: 1px solid rgba(129, 140, 248, 0.18);
    color: var(--acc-indigo);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.stat-badge:hover {
    background: rgba(129, 140, 248, 0.13);
    border-color: rgba(129, 140, 248, 0.35);
}
.stat-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════
   CARD STATS  (archive listing)
   ═══════════════════════════════════════════════════════ */
.card-stats {
    display: flex;
    gap: 1.4rem;
    margin: 1.2rem 0 1.6rem;
}
.card-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}
.card-stat .stat-icon {
    width: 12px;
    height: 12px;
}

/* ═══════════════════════════════════════════════════════
   COMMENTS SECTION
   ═══════════════════════════════════════════════════════ */
.comments-section {
    margin-top: 8rem;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comments-list-header {
    margin-bottom: 3rem;
}
.comments-count-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.55em;
    color: var(--acc-indigo);
    text-transform: uppercase;
}

/* Comment list reset */
.comment-list,
.comment-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual comment */
.vespellar-comment {
    margin-bottom: 3rem;
}
.comment-body-inner {
    display: flex;
    gap: 1.4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.comment-body-inner:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(129, 140, 248, 0.2);
}
.comment-avatar img {
    border-radius: 50%;
    border: 2px solid rgba(129, 140, 248, 0.25);
    flex-shrink: 0;
}
.comment-content-wrap {
    flex: 1;
    min-width: 0;
}
.comment-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.comment-author-name {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.comment-date {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
}
.comment-awaiting {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: var(--acc-rose);
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 100px;
}
.comment-text p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.8;
}
.comment-actions {
    margin-top: 0.8rem;
}
.reply-link a,
.comment-reply-link {
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5em !important;
    text-transform: uppercase !important;
    color: rgba(129, 140, 248, 0.5) !important;
    transition: color 0.3s ease !important;
}
.reply-link a:hover,
.comment-reply-link:hover {
    color: var(--acc-indigo) !important;
}

/* Threaded (child) comments */
.comment-list .children {
    padding-left: 3rem;
    margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   COMMENT FORM
   ═══════════════════════════════════════════════════════ */
#respond {
    margin-top: 5rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
}
.comment-form-title {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: var(--acc-indigo);
    margin-bottom: 2.5rem;
}
.vespellar-comment-form p { margin-bottom: 1.5rem; }
.vespellar-comment-form label {
    display: block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.6rem;
}
.vespellar-comment-form input[type="text"],
.vespellar-comment-form input[type="email"],
.vespellar-comment-form textarea {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.vespellar-comment-form input[type="text"]:focus,
.vespellar-comment-form input[type="email"]:focus,
.vespellar-comment-form textarea:focus {
    border-color: rgba(129, 140, 248, 0.5);
    background: rgba(129, 140, 248, 0.06);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.08);
}
.vespellar-comment-form textarea { resize: vertical; min-height: 130px; }

.vespellar-comment-form .form-submit { margin-top: 2rem; }
.vespellar-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2.4rem;
    background: linear-gradient(135deg, rgba(165, 180, 252, 0.15) 0%, rgba(251, 113, 133, 0.15) 100%);
    border: 1px solid rgba(165, 180, 252, 0.3);
    border-radius: 100px;
    color: white !important;
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.vespellar-submit:hover {
    background: linear-gradient(135deg, rgba(165, 180, 252, 0.3) 0%, rgba(251, 113, 133, 0.3) 100%);
    border-color: rgba(165, 180, 252, 0.6);
    box-shadow: 0 8px 24px rgba(129, 140, 248, 0.2);
    transform: translateY(-1px);
}

/* 댓글 폼 두 컬럼 레이아웃 */
.comment-form-author,
.comment-form-email {
    display: inline-block;
    width: calc(50% - 0.75rem);
    vertical-align: top;
}
.comment-form-author { margin-right: 1.5rem; }

@media (max-width: 600px) {
    .comment-form-author,
    .comment-form-email {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    .comment-list .children { padding-left: 1rem; }
    #respond { padding: 2rem 1.5rem; }
    .post-stats { gap: 0.8rem; }
}
