/* ============================================
   Blog System — Infinite Void Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --void-black: #000000;
    --void-deep: #030012;
    --cosmos-cyan: #00e5ff;
    --purple-accent: #7c4dff;
    --aesthetic-purple: #b794f4;
    --text-primary: #e0e0e0;
    --card-bg: rgba(183, 148, 244, 0.03);
    --card-border: rgba(183, 148, 244, 0.1);
    --glow-purple: rgba(183, 148, 244, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #000000 0%, #050015 30%, #0a0020 60%, #050015 85%, #000000 100%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Film Grain Overlay
   ============================================ */
#grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    animation: grain-shift 0.3s steps(4) infinite;
}

@keyframes grain-shift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-2px, 2px);
    }

    50% {
        transform: translate(2px, -1px);
    }

    75% {
        transform: translate(-1px, -2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* ============================================
   Floating Particles Background
   ============================================ */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--aesthetic-purple);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-duration: 25s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-duration: 20s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-duration: 19s;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-duration: 23s;
    animation-delay: 0.5s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-duration: 17s;
    animation-delay: 2.5s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-duration: 21s;
    animation-delay: 4.5s;
}

.particle:nth-child(10) {
    left: 15%;
    animation-duration: 24s;
    animation-delay: 1.5s;
}

.particle:nth-child(11) {
    left: 35%;
    animation-duration: 15s;
    animation-delay: 3.5s;
}

.particle:nth-child(12) {
    left: 55%;
    animation-duration: 26s;
    animation-delay: 0.8s;
}

.particle:nth-child(13) {
    left: 75%;
    animation-duration: 18s;
    animation-delay: 2.8s;
}

.particle:nth-child(14) {
    left: 95%;
    animation-duration: 20s;
    animation-delay: 4.2s;
}

.particle:nth-child(15) {
    left: 5%;
    animation-duration: 22s;
    animation-delay: 1.2s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* ============================================
   Top Navigation Bar
   ============================================ */
.blog-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(183, 148, 244, 0.08);
}

.blog-nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-back-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(183, 148, 244, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-back-link:hover {
    color: var(--aesthetic-purple);
    text-shadow: 0 0 15px rgba(183, 148, 244, 0.4);
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff 0%, var(--aesthetic-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-new-post-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 30px;
    border: 1px solid var(--aesthetic-purple);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), rgba(183, 148, 244, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-new-post-btn:hover {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.4), rgba(183, 148, 244, 0.25));
    box-shadow: 0 0 30px rgba(183, 148, 244, 0.3), 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   Blog Page Header
   ============================================ */
.blog-page-header {
    text-align: center;
    padding: 80px 24px 40px;
    position: relative;
    z-index: 1;
}

.blog-page-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--aesthetic-purple);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.1s forwards;
}

.blog-page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(180deg, #ffffff 0%, var(--aesthetic-purple) 60%, var(--purple-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(183, 148, 244, 0.25));
    opacity: 0;
    animation: titleReveal 1s ease 0.3s forwards;
}

.blog-page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(224, 224, 224, 0.5);
    margin-top: 16px;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.5s forwards;
}

.blog-page-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aesthetic-purple), transparent);
    margin: 32px auto 0;
    opacity: 0;
    animation: fadeIn 1s ease 0.7s forwards;
}

/* ============================================
   Gojo Satoru Quote
   ============================================ */
.gojo-quote {
    text-align: center;
    padding: 50px 24px 40px;
    margin: 0 auto;
    max-width: 700px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeSlideUp 1s ease 0.9s forwards;
}

.gojo-quote-decoration {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.2);
    animation: quoteStarPulse 3s ease-in-out infinite;
}

@keyframes quoteStarPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.gojo-quote-japanese {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #ffd700 0%, #f5c842 30%, #e8a317 50%, #ffd700 80%, #fff4b0 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.25));
    animation: goldenTextShimmer 4s ease-in-out infinite;
    margin-bottom: 14px;
    line-height: 1.6;
}

@keyframes goldenTextShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.gojo-quote-english {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 215, 0, 0.35);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.gojo-quote-attribution {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.3);
}

.gojo-quote-attribution span {
    color: rgba(255, 215, 0, 0.18);
    margin-left: 4px;
    font-weight: 400;
}

/* ============================================
   Blog Card Grid
   ============================================ */
.blog-grid-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 100px;
    position: relative;
    z-index: 1;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.6s ease forwards;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aesthetic-purple), var(--purple-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover {
    border-color: var(--glow-purple);
    background: rgba(183, 148, 244, 0.07);
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(183, 148, 244, 0.1),
        inset 0 1px 0 rgba(183, 148, 244, 0.1);
}

.blog-card:hover::before {
    opacity: 1;
}

/* Staggered entrance for cards */
.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-card:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-card:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-card:nth-child(6) {
    animation-delay: 0.6s;
}

.blog-card:nth-child(7) {
    animation-delay: 0.7s;
}

.blog-card:nth-child(8) {
    animation-delay: 0.8s;
}

.blog-card:nth-child(9) {
    animation-delay: 0.9s;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(183, 148, 244, 0.5);
}

.blog-card-meta .dot {
    width: 3px;
    height: 3px;
    background: rgba(183, 148, 244, 0.4);
    border-radius: 50%;
}

.blog-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--aesthetic-purple);
}

.blog-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(224, 224, 224, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.blog-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 4px 14px;
    border-radius: 20px;
    color: rgba(183, 148, 244, 0.8);
    border: 1px solid rgba(183, 148, 244, 0.15);
    background: rgba(183, 148, 244, 0.04);
    letter-spacing: 1px;
}

.blog-card-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    font-size: 1.2rem;
    color: rgba(183, 148, 244, 0.2);
    transition: all 0.4s ease;
}

.blog-card:hover .blog-card-arrow {
    color: var(--aesthetic-purple);
    transform: translateX(4px);
}

/* ============================================
   Empty State
   ============================================ */
.blog-empty-state {
    text-align: center;
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.empty-void-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(183, 148, 244, 0.15);
    background: rgba(183, 148, 244, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 3rem;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(183, 148, 244, 0.1);
    }

    50% {
        box-shadow: 0 0 50px rgba(183, 148, 244, 0.25), 0 0 80px rgba(124, 77, 255, 0.1);
    }
}

.empty-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.empty-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(224, 224, 224, 0.4);
    margin-bottom: 36px;
}

.empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 30px;
    border: 1px solid var(--aesthetic-purple);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.25), rgba(183, 148, 244, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-cta:hover {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.4), rgba(183, 148, 244, 0.25));
    box-shadow: 0 0 40px rgba(183, 148, 244, 0.3);
    transform: translateY(-3px);
}

/* ============================================
   Blog Editor
   ============================================ */
.editor-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 100px;
    position: relative;
    z-index: 1;
}

.editor-title-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid rgba(183, 148, 244, 0.1);
    transition: border-color 0.3s ease;
    caret-color: var(--aesthetic-purple);
}

.editor-title-input::placeholder {
    color: rgba(183, 148, 244, 0.2);
}

.editor-title-input:focus {
    border-bottom-color: var(--aesthetic-purple);
}

/* Tags Input */
.editor-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(183, 148, 244, 0.06);
    margin-bottom: 24px;
}

.editor-tags-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(183, 148, 244, 0.4);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 5px 14px;
    border-radius: 20px;
    color: var(--aesthetic-purple);
    border: 1px solid rgba(183, 148, 244, 0.2);
    background: rgba(183, 148, 244, 0.06);
    animation: fadeIn 0.3s ease;
}

.tag-pill .tag-remove {
    cursor: pointer;
    opacity: 0.5;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.tag-pill .tag-remove:hover {
    opacity: 1;
}

.editor-tags-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 120px;
    flex: 1;
    caret-color: var(--aesthetic-purple);
}

.editor-tags-input::placeholder {
    color: rgba(183, 148, 244, 0.2);
}

/* Toolbar */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(183, 148, 244, 0.03);
    border: 1px solid rgba(183, 148, 244, 0.08);
    border-radius: 14px;
    margin-bottom: 20px;
    position: sticky;
    top: 62px;
    z-index: 30;
    backdrop-filter: blur(20px);
}

.toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(224, 224, 224, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}

.toolbar-btn:hover {
    background: rgba(183, 148, 244, 0.1);
    border-color: rgba(183, 148, 244, 0.2);
    color: #ffffff;
}

.toolbar-btn.active {
    background: rgba(183, 148, 244, 0.15);
    border-color: rgba(183, 148, 244, 0.3);
    color: var(--aesthetic-purple);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(183, 148, 244, 0.1);
    margin: 0 6px;
    align-self: center;
}

/* Content Editable Area */
.editor-content {
    min-height: 500px;
    padding: 32px;
    background: rgba(183, 148, 244, 0.02);
    border: 1px solid rgba(183, 148, 244, 0.08);
    border-radius: 16px;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(224, 224, 224, 0.85);
    caret-color: var(--aesthetic-purple);
    transition: border-color 0.3s ease;
}

.editor-content:focus {
    border-color: rgba(183, 148, 244, 0.2);
    box-shadow: 0 0 30px rgba(183, 148, 244, 0.05);
}

.editor-content:empty::before {
    content: 'Start writing your thoughts into the void...';
    color: rgba(183, 148, 244, 0.15);
    font-style: italic;
}

.editor-content h1,
.editor-content h2,
.editor-content h3 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 24px 0 12px;
}

.editor-content h1 {
    font-size: 1.8rem;
    font-weight: 900;
}

.editor-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.editor-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.editor-content blockquote {
    border-left: 3px solid var(--aesthetic-purple);
    padding-left: 20px;
    margin: 16px 0;
    color: rgba(183, 148, 244, 0.7);
    font-style: italic;
}

.editor-content pre,
.editor-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(183, 148, 244, 0.06);
    border-radius: 6px;
    font-size: 0.88rem;
}

.editor-content code {
    padding: 2px 8px;
    color: var(--aesthetic-purple);
}

.editor-content pre {
    padding: 20px;
    overflow-x: auto;
    border: 1px solid rgba(183, 148, 244, 0.1);
    margin: 16px 0;
}

.editor-content pre code {
    padding: 0;
    background: none;
}

.editor-content a {
    color: var(--aesthetic-purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.editor-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
    border: 1px solid rgba(183, 148, 244, 0.1);
}

.editor-content ul,
.editor-content ol {
    padding-left: 24px;
    margin: 12px 0;
}

.editor-content li {
    margin-bottom: 6px;
}

/* Editor Action Buttons */
.editor-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-save,
.btn-export,
.btn-delete,
.btn-preview {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save {
    color: #ffffff;
    border: 1px solid var(--aesthetic-purple);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.3), rgba(183, 148, 244, 0.15));
}

.btn-save:hover {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.5), rgba(183, 148, 244, 0.3));
    box-shadow: 0 0 35px rgba(183, 148, 244, 0.3);
    transform: translateY(-2px);
}

.btn-export {
    color: rgba(183, 148, 244, 0.8);
    border: 1px solid rgba(183, 148, 244, 0.2);
    background: rgba(183, 148, 244, 0.04);
}

.btn-export:hover {
    color: #ffffff;
    border-color: rgba(183, 148, 244, 0.4);
    background: rgba(183, 148, 244, 0.1);
    transform: translateY(-2px);
}

.btn-preview {
    color: rgba(0, 229, 255, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.04);
}

.btn-preview:hover {
    color: #ffffff;
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

.btn-delete {
    color: rgba(255, 100, 100, 0.8);
    border: 1px solid rgba(255, 100, 100, 0.2);
    background: rgba(255, 100, 100, 0.04);
}

.btn-delete:hover {
    color: #ffffff;
    border-color: rgba(255, 100, 100, 0.5);
    background: rgba(255, 100, 100, 0.12);
    transform: translateY(-2px);
}

/* ============================================
   Blog Post Viewer
   ============================================ */
.post-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 120px;
    position: relative;
    z-index: 1;
}

.post-header {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(183, 148, 244, 0.08);
    margin-bottom: 48px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(183, 148, 244, 0.5);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 0.1s forwards;
}

.post-meta .dot {
    width: 3px;
    height: 3px;
    background: rgba(183, 148, 244, 0.4);
    border-radius: 50%;
}

.post-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.3;
    background: linear-gradient(180deg, #ffffff 0%, var(--aesthetic-purple) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(183, 148, 244, 0.2));
    opacity: 0;
    animation: titleReveal 0.8s ease 0.3s forwards;
}

.post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 0.5s forwards;
}

/* Post Content — typography */
.post-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 2;
    color: rgba(224, 224, 224, 0.8);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.6s forwards;
}

.post-body h1,
.post-body h2,
.post-body h3 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 48px 0 16px;
}

.post-body h1 {
    font-size: 1.8rem;
    font-weight: 900;
}

.post-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.post-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body blockquote {
    border-left: 3px solid var(--aesthetic-purple);
    padding: 16px 24px;
    margin: 28px 0;
    background: rgba(183, 148, 244, 0.03);
    border-radius: 0 12px 12px 0;
    color: rgba(183, 148, 244, 0.75);
    font-style: italic;
}

.post-body pre {
    background: rgba(183, 148, 244, 0.04);
    border: 1px solid rgba(183, 148, 244, 0.1);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(224, 224, 224, 0.85);
}

.post-body code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(183, 148, 244, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--aesthetic-purple);
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-body a {
    color: var(--aesthetic-purple);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(183, 148, 244, 0.3);
    transition: text-decoration-color 0.3s ease;
}

.post-body a:hover {
    text-decoration-color: var(--aesthetic-purple);
}

.post-body img {
    max-width: 100%;
    border-radius: 16px;
    margin: 28px 0;
    border: 1px solid rgba(183, 148, 244, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.post-body ul,
.post-body ol {
    padding-left: 28px;
    margin: 16px 0;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(183, 148, 244, 0.2), transparent);
    margin: 48px 0;
}

/* Post Footer Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(183, 148, 244, 0.08);
    flex-wrap: wrap;
    gap: 16px;
}

.post-action-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(183, 148, 244, 0.6);
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid rgba(183, 148, 244, 0.12);
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.post-action-link:hover {
    color: #ffffff;
    border-color: var(--aesthetic-purple);
    background: rgba(183, 148, 244, 0.08);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 30px;
    background: rgba(124, 77, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(124, 77, 255, 0.4);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Confirm Dialog Overlay
   ============================================ */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 90;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.confirm-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.confirm-dialog {
    background: linear-gradient(180deg, #0a0020, #050015);
    border: 1px solid rgba(183, 148, 244, 0.15);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(183, 148, 244, 0.08);
}

.confirm-dialog h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 12px;
}

.confirm-dialog p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(224, 224, 224, 0.5);
    margin-bottom: 32px;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   Shared Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   Footer
   ============================================ */
.blog-footer {
    text-align: center;
    padding: 40px 24px 30px;
    position: relative;
    z-index: 1;
}

.blog-footer-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(183, 148, 244, 0.25);
    text-transform: uppercase;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .blog-nav {
        padding: 14px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .blog-nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .nav-new-post-btn {
        width: 100%;
        justify-content: center;
    }

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

    .blog-page-header {
        padding: 60px 20px 30px;
    }

    .blog-page-title {
        letter-spacing: 3px;
    }

    .editor-toolbar {
        gap: 2px;
        padding: 10px 12px;
    }

    .toolbar-btn {
        padding: 6px 8px;
        font-size: 0.78rem;
        min-width: 30px;
    }

    .editor-content {
        padding: 20px;
        min-height: 350px;
    }

    .editor-actions {
        flex-direction: column;
    }

    .btn-save,
    .btn-export,
    .btn-delete,
    .btn-preview {
        width: 100%;
        justify-content: center;
    }

    .post-container {
        padding: 30px 20px 80px;
    }

    .post-actions {
        flex-direction: column;
    }

    .post-action-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-page-label {
        letter-spacing: 5px;
        font-size: 0.7rem;
    }

    .editor-title-input {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .blog-card {
        padding: 24px;
    }

    .blog-card-title {
        font-size: 1rem;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: rgba(183, 148, 244, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(183, 148, 244, 0.4);
}