/* Retro Web Style CSS */
:root {
    --bg-color: #0a0a0a;
    --text-color: #cccccc;
    --accent-color: #00cc88;
    --accent-secondary: #ff66cc;
    --border-color: #333333;
    --texture-light: rgba(255, 255, 255, 0.05);
    --texture-medium: rgba(0, 0, 0, 0.1);
    --header-font: 'Press Start 2P', monospace;
    --body-font: 'Courier Prime', monospace;
    --ui-font: 'VT323', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 204, 136, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(255, 102, 204, 0.05) 0%, transparent 20%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    background-color: rgba(10, 10, 10, 0.9);
    position: relative;
    overflow: hidden;
}

.header-content {
    padding: 20px;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.logo {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-color);
    padding: 5px;
    background-color: #111;
    image-rendering: pixelated;
}

.title h1 {
    font-family: var(--header-font);
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.subtitle {
    font-family: var(--ui-font);
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

.header-texture {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 5px,
        var(--accent-color) 5px,
        var(--accent-color) 10px
    );
}

/* Navigation */
.main-nav {
    display: flex;
    background-color: #111;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.nav-link {
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--ui-font);
    font-size: 1.3rem;
    transition: all 0.3s;
    border-right: 1px solid var(--border-color);
    flex: 1;
    text-align: center;
}

.nav-link:hover {
    background-color: var(--accent-color);
    color: #000;
}

.nav-link.active {
    background-color: #222;
    color: var(--accent-color);
}

.nav-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(0, 204, 136, 0.05) 50%),
        linear-gradient(transparent 50%, rgba(255, 102, 204, 0.05) 50%);
    background-size: 10px 10px, 20px 20px;
    pointer-events: none;
}

/* Main Content Layout */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.sidebar {
    flex: 0 0 300px;
}

.main-content {
    flex: 1;
}

/* Sidebar Styles */
.sidebar-section {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    padding: 20px;
    background-color: rgba(15, 15, 15, 0.8);
}

.sidebar-section h3 {
    color: var(--accent-color);
    font-family: var(--ui-font);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.profile {
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    margin: 0 auto 15px;
    border: 3px solid var(--border-color);
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-family: var(--ui-font);
    font-size: 1.2rem;
}

.status-light {
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.post-list {
    list-style-type: none;
}

.post-list li {
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-color);
    display: flex;
    justify-content: space-between;
}

.post-list a {
    color: var(--text-color);
    text-decoration: none;
}

.post-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.date {
    color: var(--accent-secondary);
    font-family: var(--ui-font);
    font-size: 0.9rem;
}

.webring {
    text-align: center;
    font-family: var(--ui-font);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.webring a {
    color: var(--accent-color);
    text-decoration: none;
    padding: 0 5px;
}

.webring a:hover {
    text-decoration: underline;
}

.webring-desc {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #222;
    color: var(--accent-secondary);
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.tag:hover {
    background-color: #333;
    cursor: pointer;
}

/* Content Sections */
.content-section {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    padding: 25px;
    background-color: rgba(15, 15, 15, 0.8);
    position: relative;
    overflow: hidden;
}

.content-section h2 {
    color: var(--accent-color);
    font-family: var(--ui-font);
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Textures for different sections */
.texture-1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 49%, var(--texture-light) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, var(--texture-light) 50%, transparent 51%);
    background-size: 10px 10px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.texture-2 {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 204, 136, 0.05) 0%, transparent 50%);
}

.texture-3::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, var(--texture-medium) 1px, var(--texture-medium) 2px);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Post Styles */
.post h3 {
    color: var(--accent-secondary);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--header-font);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #888;
    font-family: var(--ui-font);
    font-size: 1.1rem;
}

.post p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--ui-font);
    font-size: 1.2rem;
    border: 1px solid var(--accent-color);
    padding: 8px 15px;
    transition: all 0.3s;
}

.read-more:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* Thoughts */
.thoughts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.thought {
    padding: 15px;
    border-left: 3px solid var(--accent-color);
    background-color: rgba(30, 30, 30, 0.5);
}

.thought h4 {
    color: var(--accent-secondary);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.thought p {
    margin-bottom: 5px;
}

.thought a {
    color: var(--accent-color);
}

.thought-date {
    color: #888;
    font-size: 0.9rem;
    font-family: var(--ui-font);
}

/* Gallery */
.gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 1;
    min-width: 200px;
}

.gallery-img {
    height: 150px;
    border: 2px solid var(--border-color);
    margin-bottom: 10px;
    background-color: #222;
    position: relative;
    overflow: hidden;
}

.img-1 {
    background: linear-gradient(45deg, #0a0a0a, var(--accent-color));
}

.img-2 {
    background: linear-gradient(45deg, #0a0a0a, var(--accent-secondary));
}

.img-3 {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
}

.gallery-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(transparent 50%, rgba(0, 0, 0, 0.5) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.1), rgba(0, 255, 0, 0.1), rgba(0, 0, 255, 0.1));
    background-size: 10px 10px, 100% 100%;
    mix-blend-mode: overlay;
}

.gallery-item p {
    text-align: center;
    font-family: var(--ui-font);
    font-size: 1.1rem;
}

/* Footer */
footer {
    border: 2px solid var(--border-color);
    background-color: rgba(10, 10, 10, 0.9);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    padding: 30px;
    gap: 40px;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    color: var(--accent-color);
    font-family: var(--ui-font);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--ui-font);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-section a {
    color: var(--accent-color);
}

#visitor-count {
    font-family: var(--ui-font);
    font-size: 1.3rem;
    color: var(--accent-secondary);
    margin-top: 15px;
}

.footer-bottom {
    padding: 15px;
    text-align: center;
    background-color: #111;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-bottom p {
    font-family: var(--ui-font);
    font-size: 1.2rem;
}

.footer-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0, 204, 136, 0.1) 5px, rgba(0, 204, 136, 0.1) 10px);
    opacity: 0.3;
    pointer-events: none;
}

/* Blinking cursor effect */
.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .gallery {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .main-nav {
        flex-direction: column;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .title h1 {
        font-size: 1.4rem;
    }
}