/* ===== GLOBAL STYLES & RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    background-image: radial-gradient(rgba(230,0,122, 0.8), black 120%);
    color: white;
    font: 1.3rem Inconsolata, monospace;
    text-shadow: 0 0 5px #e6007a;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== CUSTOM FONT DECLARATIONS ===== */
@font-face {
  font-family: 'psp';
  src: url('fonts/FOT-NewRodin\ Pro\ DB.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'digi';
  src: url('fonts/DS-DIGI.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'nova';
  src: url('fonts/ProximaNova-Regular.otf') format('opentype');
  font-display: swap;
}

/* ===== SCANLINES EFFECT ===== */
body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 300%;
    top: -100%;
    left: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 1%,
        transparent 2%
    );
    animation: fudge 7s infinite linear;
}

body::after {
    content: "";
    position: fixed;
    width: 100%;
    height: 300%;
    top: -100%;
    left: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 0.75%,
        transparent 1.25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 50.75%,
        transparent 51.25%
    );
    animation: scanline 20s infinite linear;
}

/* ===== MAIN CONTAINER ===== */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 4rem;
}

/* ===== TERMINAL HEADER ===== */
.terminal-header {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'digi';
}

.terminal-title {
    font-size: 3rem;
    color: #e6007a;
    text-shadow: 0 0 20px #e6007a, 0 0 40px #e6007a;
    animation: flicker 1550ms infinite;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'digi';
}

.terminal-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    animation: typing 7s steps(40) infinite; 
    border-right: 2px solid #e6007a;
    white-space: nowrap;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
    font-family: 'digi';
}

/* ===== NAVIGATION GRID ===== */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 3rem;
}

.nav-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #e6007a;
    border-radius: 20%;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(230, 0, 122, 0.3);
    z-index: 20;
}

/* ===== NAV CARD GEOMETRIC BACKGROUNDS ===== */
.nav-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: conic-gradient(from 0deg, transparent, #e6007a, transparent, #ff1493, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotate 8s linear infinite;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.nav-card:nth-child(1)::after {
    background: conic-gradient(from 0deg, transparent, #e6007a, transparent);
    width: 150px;
    height: 150px;
    animation: rotate 6s linear infinite;
}

.nav-card:nth-child(2)::after {
    background: linear-gradient(45deg, transparent 40%, rgba(230, 0, 122, 0.3) 50%, transparent 60%);
    width: 180px;
    height: 180px;
    border-radius: 0;
    animation: rotate-reverse 10s linear infinite;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.nav-card:nth-child(3)::after {
    background: linear-gradient(0deg, transparent, #e6007a, transparent, #ff1493, transparent);
    width: 160px;
    height: 160px;
    border-radius: 0;
    animation: rotate 12s linear infinite;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.nav-card .geo-element {
    position: absolute;
    border: 1px solid rgba(230, 0, 122, 0.2);
    animation: float 4s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.nav-card .geo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float 3s ease-in-out infinite;
}

.nav-card .geo-square {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: float 5s ease-in-out infinite reverse;
}

.nav-card .geo-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(230, 0, 122, 0.1);
    top: 70%;
    right: 20%;
    animation: float 4.5s ease-in-out infinite;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 0, 122, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
    pointer-events: none;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(230, 0, 122, 0.6);
    border-color: #ff1493;
}

.nav-card h2 {
    font-size: 1.8rem;
    font-family: 'digi';
    color: #e6007a;
    margin-bottom: 1rem;
    animation: flicker 2s infinite;
    position: relative;
    z-index: 1;
}

.nav-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.nav-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #e6007a;
    text-shadow: 0 0 10px #e6007a;
    position: relative;
    z-index: 1;
}

/* ===== SCROLLING TEXT BANNER ===== */
.slider {
    width: 100%;
    border: 2px solid #e6007a;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.5);
}

.slidertext {
    animation: slide 45s infinite linear;
    white-space: nowrap;
    display: inline-block;
    font-size: 1.1rem;
    color: #e6007a;
    font-family: 'digi';
}

.slidertext:hover {
    animation-play-state: paused;
    cursor: grabbing;
}

/* ===== STATUS BAR ===== */
.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #e6007a;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-left, .status-right {
    color: #e6007a;
    animation: flicker 3s infinite;
    font-family: 'digi';
}

/* ===== MATRIX RAIN EFFECT ===== */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}

.matrix-char {
    position: absolute;
    color: #e6007a;
    font-family: monospace;
    font-size: 1rem;
    animation: fall linear infinite;
    pointer-events: none;
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'digi';
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff00de;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
}

/* ===== FOOTER ===== */
footer {
  font-size: 0.8rem;
  text-align: center;
  font-family: 'digi', monospace;
  color: #e6007a;
  padding: 1rem;
  width: 90%;
  border: 2px solid #e6007a;
  background-color: black;
  margin: 2rem auto;
  box-shadow: 0 0 10px rgba(230,0,122, 0.5);
}

/* ===== BLOG STYLES ===== */

/* Navigation Back Button */
.nav-back {
    margin-bottom: 2rem;
    text-align: center;
}

.back-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #e6007a;
    color: #e6007a;
    padding: 0.8rem 1.5rem;
    font-family: 'digi', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(230, 0, 122, 0.3);
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 0, 122, 0.2), transparent);
    transition: left 0.5s;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:hover {
    border-color: #ff1493;
    box-shadow: 0 0 25px rgba(230, 0, 122, 0.6);
    transform: scale(1.05);
}

.back-btn .icon {
    margin-right: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.back-btn:hover .icon {
    transform: translateX(-3px);
}

/* Blog Container */
.blog-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 3rem auto;
    position: relative;
    z-index: 10;
}

/* Blog Post Styles */
.blog-post {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #e6007a;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(230, 0, 122, 0.3);
    transition: all 0.3s ease;
}

/* Rotating geometric background for posts */
.blog-post::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 150px;
    height: 150px;
    background: conic-gradient(from 0deg, transparent, rgba(230, 0, 122, 0.1), transparent);
    border-radius: 50%;
    transform: translateY(-50%) rotate(0deg);
    animation: rotate 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.blog-post:nth-child(even)::after {
    left: -50px;
    right: auto;
    background: linear-gradient(45deg, transparent 40%, rgba(230, 0, 122, 0.1) 50%, transparent 60%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: rotate-reverse 20s linear infinite;
}

.blog-post:hover {
    border-color: #ff1493;
    box-shadow: 0 0 30px rgba(230, 0, 122, 0.5);
    transform: translateY(-2px);
}

/* Post Header */
.post-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(230, 0, 122, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.post-meta {
    display: flex;
    justify-content: flex-start; /* Changed from space-between */
    align-items: center;
    font-size: 0.9rem;
    font-family: 'digi', monospace;
    margin-right: 120px; /* Add margin to prevent overlap with buttons */
}

.post-date {
    color: #e6007a;
    animation: flicker 3s infinite;
}

.post-status {
    padding: 0.2rem 0.8rem;
    border: 1px solid #e6007a;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.8);
}

.post-status:contains("ACTIVE") {
    color: #00ff41;
    border-color: #00ff41;
    animation: flicker 2s infinite;
}

.post-title {
    font-size: 1.8rem;
    color: #e6007a;
    font-family: 'digi', monospace;
    margin: 0;
    text-shadow: 0 0 10px rgba(230, 0, 122, 0.5);
    transition: all 0.3s ease;
}

.post-header:hover .post-title {
    text-shadow: 0 0 15px rgba(230, 0, 122, 0.8);
    transform: translateX(5px);
}

/* Post Tags */
.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(230, 0, 122, 0.2);
    border: 1px solid rgba(230, 0, 122, 0.5);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: monospace;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(230, 0, 122, 0.4);
    border-color: #e6007a;
    transform: scale(1.05);
}

/* Expand Button */
.expand-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 2px solid #e6007a;
    color: #e6007a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 3;
}

.expand-btn:hover {
    background: rgba(230, 0, 122, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(230, 0, 122, 0.5);
}

.expand-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.blog-post.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Post Content */
.post-content {
    position: relative;
    z-index: 2;
}

.post-excerpt {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    border-bottom: 1px solid rgba(230, 0, 122, 0.2);
}

.post-body {
    padding: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    opacity: 0;
}

.blog-post.expanded .post-body {
    max-height: 2000px;
    opacity: 1;
    padding: 1.5rem;
}

/* Post Content Typography */
.post-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.post-body h3 {
    color: #e6007a;
    font-family: 'digi', monospace;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    text-shadow: 0 0 5px rgba(230, 0, 122, 0.5);
}

.post-body blockquote {
    border-left: 3px solid #e6007a;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(230, 0, 122, 0.05);
    padding: 1rem 1.5rem;
}

.post-body ul, .post-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.post-body pre {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(230, 0, 122, 0.3);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Inconsolata', monospace;
    border-radius: 4px;
}

.post-body code {
    color: #00ff41;
    font-family: 'Inconsolata', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
}

.post-body pre code {
    background: transparent;
    padding: 0;
}

/* Glitch effect for certain status indicators */
.post-status.glitch-active {
    animation: glitch-text 0.5s infinite;
}

/* Special effects for active posts */
.blog-post[data-post-id="1"] .post-status {
    color: #00ff41;
    border-color: #00ff41;
    animation: flicker 1.5s infinite;
}

.blog-post[data-post-id="3"] .post-status {
    color: #ff6b35;
    border-color: #ff6b35;
    animation: glitch-text 2s infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
    }
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes fudge {
    from { transform: translateY(20%); }
    to { transform: translateY(10%); }
}

@keyframes scanline {
    from { transform: translateY(0); }
    to { transform: translateY(70%); }
}

@keyframes typing {
    0%, 20% { width: 0; } 
    40%, 80% { width: 100%; } 
    90%, 100% { width: 0; }
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 0.4;
    }
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    15%, 49% {
        transform: translate(-2px, 0);
        opacity: 1;
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    21%, 62% {
        transform: translate(2px, 0);
        opacity: 1;
    }
}

@keyframes glitch-text {
    0%, 90%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-1px, 1px);
    }
    40% {
        transform: translate(-1px, -1px);
    }
    60% {
        transform: translate(1px, 1px);
    }
    80% {
        transform: translate(1px, -1px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
    .terminal-title {
        font-size: 2rem;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-card {
        padding: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .blog-container {
        padding: 0 1rem;
    }
    
    .post-header {
        padding: 1rem;
    }
    
    .post-body {
        padding: 1rem;
    }
    
    .blog-post.expanded .post-body {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
    
    .expand-btn {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .container {
        padding: 1rem;
        padding-top: 5rem; /* Increase top padding on mobile for better spacing */
    }
    
    .terminal-header {
        margin-bottom: 2rem; /* Reduce bottom margin on mobile */
    }
    
    .status-bar {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem; /* Slightly more padding for mobile */
        height: auto;
        min-height: 40px; /* Ensure minimum height */
    }
}

@media screen and (max-width: 480px) {
    .terminal-title {
        font-size: 1.5rem;
    }
    
    .nav-card h2 {
        font-size: 1.4rem;
    }
    
    .status-bar {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .post-tags {
        gap: 0.3rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .back-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Additional CSS for blog linking system */

/* Copy link button styles */
.copy-link-btn {
    position: absolute;
    top: 1.5rem;
    right: 65px; 
    background: transparent;
    border: 1px solid #e6007a;
    color: #e6007a;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-link-btn:hover {
    background: rgba(230, 0, 122, 0.1);
    border-color: #ff1493;
    color: #ff1493;
    transform: scale(1.05);
}

.copy-link-btn:active {
    transform: scale(0.95);
}

.copy-icon {
    font-size: 16px;
    line-height: 1;
}

/* Ensure post header has relative positioning for button placement */
.post-header {
    position: relative;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 80px; /* Below status bar */
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff41;
    padding: 12px 20px;
    border: 1px solid #00ff41;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #00ff41;
}

/* Enhanced highlight effect for linked posts */
.blog-post.highlighted {
    border-color: #ff1493 !important;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.6) !important;
    animation: pulseHighlight 2s ease-in-out;
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 20, 147, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 20, 147, 0.8);
    }
}

/* Responsive adjustments for copy button */
@media (max-width: 768px) {
    .post-meta {
        margin-right: 100px; /* Reduce margin for smaller screens */
    }
    
    .post-status {
        top: 1rem;
        left: 1rem;
        padding: 0.15rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .copy-link-btn {
        right: 50px;
        top: 1rem;
        padding: 6px;
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .expand-btn {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .copy-link-btn {
        right: 50px;
        padding: 6px;
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .copy-icon {
        font-size: 14px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        width: auto;
        text-align: center;
    }
    
    .notification::before {
        display: none;
    }
}

@media (max-width: 480px) {

    .post-meta {
        margin-right: 85px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-status {
        position: static; /* Make it flow with the content on very small screens */
        margin-top: 0.5rem;
    }
    
    .copy-link-btn {
        right: 40px;
        padding: 4px;
        min-width: 28px;
        height: 28px;
    }
    
    .expand-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .copy-link-btn {
        right: 45px;
        padding: 4px;
        min-width: 28px;
        height: 28px;
    }
    
    .copy-icon {
        font-size: 12px;
    }
}

/* Loading state for posts being navigated to */
.blog-post.navigating {
    animation: navigateGlow 1s ease-in-out;
}

@keyframes navigateGlow {
    0% {
        box-shadow: 0 0 20px rgba(230, 0, 122, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 20, 147, 0.8);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 0 20px rgba(230, 0, 122, 0.3);
        transform: scale(1);
    }
}

/* Improve focus visibility for accessibility */
.copy-link-btn:focus {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
}

/* Add subtle animation to copy button */
.copy-link-btn {
    animation: subtle-pulse 3s infinite ease-in-out;
}

@keyframes subtle-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Stop animation on hover */
.copy-link-btn:hover {
    animation: none;
    opacity: 1;
}

/* Cursor */

.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    user-select: none;
}

.cursor-core {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #e6007a 0%, #cc0066 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 
        0 0 10px #e6007a,
        0 0 20px #e6007a,
        0 0 30px #e6007a;
    animation: corePulse 1s ease-in-out infinite alternate;
}

@keyframes corePulse {
    0% { 
        transform: scale(1);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

.particle {
    position: absolute;
    color: #e6007a;
    font-size: 14px;
    animation: particleFade 2s linear forwards;
    text-shadow: 0 0 5px currentColor;
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(360deg);
    }
}

.energy-ring {
    position: absolute;
    border: 2px solid #e6007a;
    border-radius: 50%;
    animation: ringExpand 1.5s ease-out forwards;
}

@keyframes ringExpand {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
        border-width: 1px;
    }
}

.data-stream {
    position: absolute;
    font-size: 10px;
    color: #e6007a;
    animation: streamFlow 3s linear forwards;
    white-space: nowrap;
}

@keyframes streamFlow {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
    }
}

.scan-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e6007a, transparent);
    animation: scanMove 2s ease-out forwards;
}

@keyframes scanMove {
    0% {
        width: 0;
        opacity: 1;
    }
    50% {
        width: 200px;
        opacity: 1;
    }
    100% {
        width: 300px;
        opacity: 0;
    }
}

@keyframes scanMoveVertical {
    0% { 
        height: 0; 
        opacity: 1; 
    }
    50% { 
        height: 200px; 
        opacity: 1; 
    }
    100% { 
        height: 300px; 
        opacity: 0; 
    }
}