@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    font-family: 'Share Tech Mono', monospace;
}

/* Cyberpunk Mode Styles */
.cyberpunk-mode {
    background-color: #000;
    color: #00ffff;
    transition: all 0.5s ease;
}

.light-mode {
    background-color: #fff;
    color: #1a202c;
    transition: all 0.5s ease;
}

/* CRT Scanline Effect */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    opacity: 0.03;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

/* Digital Rain Canvas */
#rainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    opacity: 0.3;
}

/* Neon Glow Effects */
.neon-border {
    border: 1px solid #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.neon-button {
    border: 1px solid #00ffff;
    background: transparent;
    color: #00ffff;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.neon-button:hover {
    background: #00ffff;
    color: #000;
}

/* Light Mode Overrides */
.light-mode .neon-border {
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.light-mode .neon-button {
    border: 1px solid #cbd5e0;
    background: #f7fafc;
    color: #2d3748;
    box-shadow: none;
}

.light-mode .neon-button:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.light-mode #rainCanvas,
.light-mode .scanlines {
    display: none;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #00ffff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode .gradient-text {
    background: none;
    -webkit-text-fill-color: inherit;
    color: #1a202c;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-text {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.light-mode .pulse-text {
    animation: none;
}

/* Project Card Hover */
.project-card {
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
}

/* Terminal Cursor */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ffff;
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* Navigation */
nav {
    backdrop-filter: blur(12px);
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a855f7;
}

/* Portal Links */
.portal-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.portal-link:last-of-type {
    border-bottom: none;
}

.light-mode .portal-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Selection */
::selection {
    background: #a855f7;
    color: white;
}

/* Ghost Content Styling */
.gh-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e0ffff;
}

.gh-content p {
    margin-bottom: 1.5rem;
    color: #e0ffff;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    color: #00ffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.gh-content a {
    color: #a855f7;
    text-decoration: underline;
}

.gh-content a:hover {
    color: #00ffff;
}

.gh-content ul,
.gh-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.gh-content li {
    margin-bottom: 0.5rem;
}

.gh-content blockquote {
    border-left: 4px solid #a855f7;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    opacity: 0.8;
}

.gh-content code {
    background: rgba(168, 85, 247, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    color: #00ffff;
}

.gh-content pre {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #a855f7;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

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

.gh-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border: 1px solid #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.gh-content hr {
    border: none;
    border-top: 1px solid #a855f7;
    margin: 3rem 0;
}

/* Prose Styling for Light Mode */
.light-mode .gh-content {
    color: #1a202c;
}

.light-mode .gh-content p {
    color: #1a202c;
}

.light-mode .gh-content h1,
.light-mode .gh-content h2,
.light-mode .gh-content h3,
.light-mode .gh-content h4,
.light-mode .gh-content h5,
.light-mode .gh-content h6 {
    color: #2d3748;
}

.light-mode .gh-content a {
    color: #5a67d8;
}

.light-mode .gh-content code {
    background: #f7fafc;
    color: #2d3748;
}

.light-mode .gh-content pre {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.light-mode .gh-content img {
    border-color: #e2e8f0;
    box-shadow: none;
}

/* Required Ghost Classes for Validator */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 2em calc(50% - 42.5vw);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.kg-card {
    margin: 1em 0;
}

.kg-embed-card {
    margin: 2em 0;
}

.kg-image-card {
    margin: 2em 0;
}

.kg-image {
    max-width: 100%;
    height: auto;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    gap: 1rem;
    font-family: 'Share Tech Mono', monospace;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #a855f7;
    background: rgba(0, 0, 0, 0.6);
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.pagination a:hover {
    background: #a855f7;
    color: #000;
}

.pagination .page-number {
    opacity: 0.6;
}

.light-mode .pagination a,
.light-mode .pagination span {
    border-color: #cbd5e0;
    background: #f7fafc;
    color: #2d3748;
}

.light-mode .pagination a:hover {
    background: #e2e8f0;
}
