@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

body {
    font-family: "JetBrains Mono", monospace;
    background-color: #000000;
    color: #ffff00;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000000;
    border: 2px solid #ffff00;
    padding: 30px;
    position: relative;
}

.terminal-header {
    border-bottom: 2px solid #ffff00;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.terminal-title {
    font-size: 1.2rem;
    color: #ffff00;
    margin-bottom: 5px;
}

.terminal-path {
    font-size: 0.9rem;
    color: #ffff00;
    opacity: 0.7;
}

.section {
    margin-bottom: 30px;
    border-left: 3px solid #ffff00;
    padding-left: 20px;
}

.section-title {
    font-size: 1.3rem;
    text-decoration: none;
    color: #ffff00;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

h1 {
    font-size: 2.5rem;
    color: #ffff00;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    color: #ffff00;
    margin-bottom: 40px;
    opacity: 0.8;
}

.nav {
    margin-bottom: 30px;
    text-align: center;
}

.nav-link {
    color: #ffff00;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 15px;
    border: 1px solid #ffff00;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    background-color: #ffff00;
    color: #000000;
}

.nav-back {
    display: inline-block;
    color: #ffff00;
    text-decoration: none;
    border: 2px solid #ffff00;
    padding: 8px 15px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-back:hover {
    background-color: #ffff00;
    color: #000000;
}

.link {
    color: #ffff00;
    text-decoration: none;
    border-bottom: 2px solid #ffff00;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.link:hover {
    background-color: #ffff00;
    color: #000000;
}

.cursor {
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ffff00;
    opacity: 0.7;
}

.footer-links {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffff00;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Blog post styles */
.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ffff00;
}

.blog-post-title {
    font-size: 2.2rem;
    color: #ffff00;
    margin-bottom: 20px;
    text-transform: lowercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.blog-post-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.blog-post-content h1 {
    font-size: 1.8rem;
    color: #ffff00;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.blog-post-content h2 {
    font-size: 1.4rem;
    color: #ffff00;
    margin: 35px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #ffff00;
    padding-bottom: 10px;
}

.blog-post-content h3 {
    font-size: 1.2rem;
    color: #ffff00;
    margin: 30px 0 15px 0;
    opacity: 0.9;
    text-transform: lowercase;
}

.blog-post-content h4 {
    font-size: 1.1rem;
    color: #ffff00;
    margin: 25px 0 10px 0;
    opacity: 0.8;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content blockquote {
    border-left: 4px solid #ffff00;
    padding-left: 25px;
    margin: 30px 0;
    opacity: 0.8;
    font-style: italic;
    background-color: rgba(255, 255, 0, 0.05);
    padding: 20px 25px;
}

.blog-post-content code {
    background-color: rgba(255, 255, 0, 0.15);
    padding: 3px 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 0, 0.3);
}

.blog-post-content pre {
    background-color: rgba(255, 255, 0, 0.05);
    border: 2px solid #ffff00;
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
    position: relative;
}

.blog-post-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
    border: 2px solid #ffff00;
}

.blog-post-content hr {
    border: none;
    border-top: 2px solid #ffff00;
    margin: 40px 0;
    opacity: 0.5;
}

#p-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border: 1px solid #ffff00;
    margin-bottom: 40px;
}

#q-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border: 1px solid #ffff00;
    margin-bottom: 40px;
}

.photo {
    position: absolute;
    width: 230px;
    height: 129px;
    background: #fff;
    border-radius: 1px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0s;
    user-select: none;
    overflow: hidden;
    border: 1px solid #ffff00;
}


.photo:active {
    cursor: grabbing;
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000 !important;
}

.photo-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    overflow: hidden;
}

.photo-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%);
    pointer-events: none;
}

/* Lightbox styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.show {
    display: flex;
    opacity: 1;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#lightbox.show #lightbox-image {
    transform: scale(1);
}

#close-button {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

#close-button:hover {
    background: #fff;
    transform: scale(1.1);
}

#close-button:active {
    transform: scale(0.95);
}

/* blog post list styles */

.blog-grid {
    display: grid;
     grid-template-columns: 1fr 400px;
     gap: 30px;
     margin-bottom: 30px;
     max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    border: 1px solid #ffff00;
    padding: 20px;
    margin: 15px 0;
    background-color: rgba(255, 255, 0, 0.02);
    transition: all 0.2s ease;
}

.blog-post:hover {
    background-color: rgba(255, 255, 0, 0.05);
    border-color: #ffff00;
}

.blog-post-title {
    font-size: 1.2rem;
    color: #ffff00;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-title:hover {
    background-color: #ffff00;
    color: #000000;
    padding: 2px 5px;
}

.blog-post-date {
    font-size: 0.8rem;
    color: #ffff00;
    opacity: 0.7;
    margin-bottom: 10px;
}

.blog-post-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #ffff00;
}

.pagination-btn {
    background-color: transparent;
    color: #ffff00;
    border: 1px solid #ffff00;
    padding: 8px 15px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #ffff00;
    color: #000000;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.9rem;
    color: #ffff00;
    opacity: 0.8;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.cursor {
    animation: blink 1s infinite;
    font-weight: bold;
}

.pokemon-card {
    background-color: #000000;
    border: 2px solid #ffff00;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffff00;
    padding-bottom: 10px;
}

.pokemon-name {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffff00;
}

.hp-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hp-label {
    font-size: 0.9rem;
    font-weight: bold;
}

.hp-value {
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #ffff00;
    color: #000000;
    padding: 2px 8px;
    border-radius: 3px;
}

.pokemon-image {
    width: 100%;
    height: 200px;
    background-color: #ffff00;
    border: 2px solid #ffff00;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.pokemon-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.2);
}

.type-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.type-badge {
    background-color: #ffff00;
    color: #000000;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.stats-section {
    border: 1px solid #ffff00;
    padding: 15px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 0, 0.02);
    font-family: "JetBrains Mono", monospace;
}

.stats-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.neofetch-info {
    font-size: 0.7rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
}

.info-line {
    margin-bottom: 3px;
    display: flex;
    align-items: center;
}

.info-label {
    color: #ffff00;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
    margin-right: 8px;
}

.info-separator {
    color: #ffff00;
    margin-right: 5px;
}

.info-value {
    color: #ffff00;
    opacity: 0.9;
}

.hostname-line {
    margin: 8px 0;
    text-align: center;
    font-weight: bold;
}

.age-line {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-icon {
    margin-right: 5px;
    font-size: 0.8rem;
}

.abilities-section {
    margin-bottom: 15px;
}

.abilities-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ability {
    background-color: rgba(255, 255, 0, 0.05);
    border: 1px dotted #ffff00;
    padding: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.ability-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.ability-description {
    opacity: 0.8;
    font-size: 0.75rem;
}

.card-footer {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    opacity: 0.7;
    border-top: 1px solid #ffff00;
    padding-top: 8px;
}

.card-number {
    font-weight: bold;
}

.rarity {
    font-weight: bold;
}

.cursor {
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}


@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .blog-post-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-link {
        display: block;
        margin: 5px 0;
    }

    .blog-post-content pre {
        padding: 15px;
        font-size: 0.8rem;
    }

    .blog-grid {
        display: block;
    }
}