/* styles.css for nolove.neocities.org iframe content */

/* Base styles to match nolove's aesthetic */
:root {
    --main-bg: #000000;
    --text-color: #cccccc;
    --accent: #ff6600;
    --glow: #ffffff;
    --nav-bg: rgba(20, 20, 20, 0.9);
    --sidebar-bg: rgba(15, 15, 15, 0.8);
    --content-bg: rgba(10, 10, 10, 0.7);
}

/* Import the same fonts */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Orbitron:wght@400;700&display=swap');

@font-face {
    font-family: 'PxPlus IBM VGA8';
    src: url('https://raw.githubusercontent.com/wyatt8740/IBM_MDA_FONT/master/Web/PxPlus_IBM_VGA8.ttf') format('truetype');
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #222;
}

body {
    background-color: transparent !important;
    color: var(--text-color);
    font-family: 'VT323', 'PxPlus IBM VGA8', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #222;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent);
}

/* Post container styling */
.post-container, 
.post-list-container {
    width: 100%;
    background-color: transparent;
}

/* Individual post styling */
.post-item {
    margin-bottom: 30px;
    border-bottom: 1px dashed #333;
    padding-bottom: 20px;
    transition: all 0.3s;
    position: relative;
}

.post-item:hover {
    background-color: rgba(255, 102, 0, 0.05);
}

/* Post title styling */
.post-title {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
    transition: all 0.2s;
}

.post-title:hover {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

/* Post metadata styling */
.post-date,
.post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

/* Post content styling */
.post-content {
    line-height: 1.7;
    padding: 5px 0;
}

/* Links styling */
a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

a:hover {
    color: var(--glow);
    text-shadow: 0 0 5px var(--accent);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

a:hover::after {
    width: 100%;
}

/* Button styling */
button,
.button {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    border: 1px solid var(--accent);
    padding: 5px 15px;
    font-family: 'VT323', monospace;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px 0;
}

button:hover,
.button:hover {
    background-color: var(--accent);
    color: var(--main-bg);
}

/* Form elements styling */
input, textarea {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: var(--text-color);
    padding: 8px;
    margin-bottom: 10px;
    font-family: 'VT323', monospace;
    width: 100%;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
}

/* Code and pre styling */
code, pre {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    padding: 2px 5px;
    font-family: 'PxPlus IBM VGA8', monospace;
}

pre {
    padding: 10px;
    overflow-x: auto;
    margin: 10px 0;
}

/* Blockquote styling */
blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    color: #aaa;
}

/* Images styling */
img {
    max-width: 100%;
    border: 1px solid #333;
    margin: 10px 0;
    filter: grayscale(20%) sepia(10%);
    transition: all 0.3s;
}

img:hover {
    filter: grayscale(0%) sepia(20%);
    transform: scale(1.01);
}

/* Terminal-like headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--accent);
    margin: 15px 0 10px 0;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
}

h1::before, h2::before, h3::before, h4::before, h5::before, h6::before {
    content: '> ';
    color: var(--accent);
}

/* Terminal prompt effect for paragraphs */
.terminal-style p::before {
    content: '$ ';
    color: var(--accent);
    opacity: 0.7;
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a, 
.pagination span {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #333;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: var(--accent);
    background-color: rgba(255, 102, 0, 0.1);
}

.pagination .active {
    background-color: var(--accent);
    color: #000;
}

/* Loading effect */
.loading {
    text-align: center;
    margin: 20px 0;
    font-family: monospace;
    color: var(--accent);
}

.loading::after {
    content: '';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: ''; }
}

/* Tags styling */
.tags {
    margin: 10px 0;
}

.tag {
    display: inline-block;
    background-color: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    padding: 2px 8px;
    margin: 2px;
    border-radius: 3px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.tag:hover {
    background-color: rgba(255, 102, 0, 0.3);
}

/* Hide any unwanted default elements from the iframe provider */
.navbar,
.footer,
.header,
.sidebar,
nav,
header,
footer {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-date {
        font-size: 0.8rem;
    }
    
    .post-item {
        padding: 10px;
    }
}