@font-face {
    font-family: 'Tiny5';
    src: url('/fonts/Tiny5-Regular.ttf') format('truetype');
}

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

body {
    font-family: "IBMPlexMonoSpace", monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tiny5', monospace;
}

a {
    color: #00ff00;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1a1a1a;
}

header h1 {
    font-size: 1.5rem;
}

header h1 a {
    color: #00ff00;
    text-decoration: none;
}

header nav {
    display: flex;
    gap: 0.5rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
}

.hero-pfp {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 2px solid #00ff00;
}

.hero-intro {
    font-size: 1.6rem;
    color: #999;
    font-weight: 300;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00ff00;
    margin-bottom: 1.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.project-card:hover {
    border-color: #00ff00;
    background: #0f0f0f;
}

.project-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.project-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.project-card h3,
.subscribe-form input {
    font-family: "IBMPlexMonoSpace", monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.project-card p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: 1px solid #1a1a1a;
    background: #0a0a0a;
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #151515;
    border-color: #333;
}

.btn-small {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
    font-weight: 600;
}

.btn-primary:hover {
    background: #00cc00;
    border-color: #00cc00;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.hidden {
    display: none !important;
}

/* Posts List */
.posts-list {
    list-style: none;
}

.posts-list li {
    margin-bottom: 1.5rem;
}

.posts-list a {
    color: inherit;
    text-decoration: none;
}

.posts-list h2 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    color: #e0e0e0;
}

.posts-list h2:hover {
    color: #00ff00;
}

.posts-list .date {
    color: #555;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    color: #555;
    padding: 2rem;
}

/* Single Post */
article {
    position: relative;
}

article h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #00ff00;
}

article .meta {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

article .content {
    font-size: 1.1rem;
    line-height: 1.8;
}

article .content p {
    margin-bottom: 1.5rem;
}

article .content h2 {
    margin: 2rem 0 1rem;
    color: #00ff00;
}

article .content h3 {
    margin: 1.5rem 0 0.75rem;
    color: #00ff00;
}

article .content ul,
article .content ol {
    margin: 1rem 0 1rem 2rem;
}

article .content pre {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

article .content code {
    background: #0a0a0a;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #00ff00;
}

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

article .content blockquote {
    border-left: 3px solid #00ff00;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #888;
    font-style: italic;
}

article .content a {
    color: #00ff00;
}

/* Edit Mode */
.editing [contenteditable] {
    outline: 2px dashed #333;
    padding: 0.5rem;
    min-height: 1em;
}

.editing [contenteditable]:focus {
    outline-color: #00ff00;
}

.edit-toolbar {
    position: sticky;
    top: 0;
    background: #000;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: #00ff00;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: #000;
    color: #e0e0e0;
}

.modal-content input:focus {
    outline: none;
    border-color: #00ff00;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Status Messages */
.status {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: #0a0a0a;
    color: #fff;
    border-radius: 4px;
    border: 1px solid #1a1a1a;
    animation: fadeIn 0.3s;
}

.status.error {
    background: #1a0000;
    border-color: #dc3545;
    color: #ef5350;
}

.status.success {
    background: #001a00;
    border-color: #00ff00;
    color: #00ff00;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Subscribe Section */
.subscribe-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    text-align: center;
}

.subscribe-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #00ff00;
}

.subscribe-section p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 1rem;
    background: #000;
    color: #e0e0e0;
}

.subscribe-form input:focus {
    outline: none;
    border-color: #00ff00;
}

.subscribe-form input::placeholder {
    color: #444;
}

.subscribe-consent {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #444;
}

.subscribe-consent a {
    color: #555;
}

.subscribe-consent a:hover {
    color: #00ff00;
}

.subscribe-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.subscribe-success {
    color: #00ff00;
}

.subscribe-error {
    color: #ef5350;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1a1a1a;
    font-size: 0.85rem;
    color: #444;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.footer-socials a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: #00ff00;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
}

.footer-bottom a {
    color: #444;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #00ff00;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero {
        padding: 2rem 0 2rem;
    }

    .hero-intro {
        font-size: 1.3rem;
    }

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

    article h1 {
        font-size: 1.5rem;
    }

    .subscribe-form {
        flex-direction: column;
    }
}
