/* CSS - Clean, minimal, blue accents */

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

html {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

body {
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
}

/* Navigation */
#hn-nav {
    background-color: #000000;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2px 0;
}

#hn-nav table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pagetop {
    font-size: 13px;
    color: #ffffff;
}

.pagetop b {
    font-weight: bold;
}

.pagetop a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 4px;
}

.pagetop a:hover {
    text-decoration: underline;
    color: #007acc;
}

.hn-title {
    font-size: 14px;
    margin-right: 8px;
}

/* Main content */
#content {
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

/* Table styles - HN core */
.itemlist {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.itemlist td {
    padding: 4px 6px;
    border-bottom: 1px solid #f5f5f5;
}

.itemlist tr:last-child td {
    border-bottom: none;
}

/* Rankings */
.rank {
    color: #828282;
    font-size: 11px;
    font-weight: bold;
    text-align: right;
    width: 20px;
}

/* Story titles */
.title {
    font-size: 13px;
}

.storylink {
    color: #000000;
    text-decoration: none;
    font-weight: normal;
}

.storylink:hover {
    text-decoration: underline;
}

.storylink:visited {
    color: #828282;
}

.sitebit {
    color: #828282;
    font-size: 11px;
}

/* Subtext (metadata) */
.subtext {
    color: #828282;
    font-size: 11px;
    line-height: 1.4;
}

.subtext a {
    color: #007acc;
    text-decoration: none;
}

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

.subtext .score {
    color: #000000;
    font-weight: bold;
}

.subtext .age {
    color: #828282;
}


/* Hero section */
#hero img {
    border-radius: 8px;
    border: 2px solid #007acc;
}

/* About section */
.about-content {
    margin: 10px 0;
    line-height: 1.5;
}

.about-content p {
    margin-bottom: 10px;
}

.about-details {
    margin-top: 15px;
}

.detail-row {
    margin-bottom: 5px;
    font-size: 12px;
}

.detail-label {
    font-weight: bold;
    color: #000000;
}

/* Skills section */
.skills-content {
    margin: 10px 0;
}

.skill-category {
    margin-bottom: 20px;
}

.skill-category h4 {
    color: #000000;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

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

.skill-tag {
    background-color: #f8f8f8;
    color: #007acc;
    padding: 2px 8px;
    font-size: 11px;
    border: 1px solid #007acc;
    text-decoration: none;
    display: inline-block;
}

.skill-tag:hover {
    background-color: #007acc;
    color: #ffffff;
}

/* Portfolio section */
.portfolio-content {
    margin: 10px 0;
}

.project-item {
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
}

.project-item:last-child {
    border-bottom: none;
}

.project-info {
    font-size: 13px;
    margin-bottom: 5px;
}

.project-description {
    color: #000000;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.project-meta {
    font-size: 11px;
    color: #828282;
    margin-bottom: 5px;
}

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

.tag {
    background-color: #f8f8f8;
    color: #007acc;
    padding: 1px 6px;
    font-size: 10px;
    border: 1px solid #007acc;
    text-decoration: none;
    display: inline-block;
    text-transform: lowercase;
}

.tag:hover {
    background-color: #007acc;
    color: #ffffff;
}

/* Contact section */
.contact-content {
    margin: 10px 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    color: #007acc;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-link:hover {
    text-decoration: underline;
}

.social-link i {
    font-size: 14px;
}

/* Footer */
.hn-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    margin-top: 20px;
    padding: 20px 0;
    text-align: center;
}

.yclinks {
    font-size: 11px;
}

.yclinks a {
    color: #007acc;
    text-decoration: none;
    margin: 0 8px;
}

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

.admin {
    color: #828282;
    font-size: 11px;
}

/* Responsive design */
@media (max-width: 768px) {
    #content {
        padding: 0 5px;
    }

    .itemlist {
        font-size: 12px;
    }

    .title {
        font-size: 12px;
    }

    .subtext {
        font-size: 10px;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .social-link {
        font-size: 11px;
    }

    .skill-tags {
        gap: 4px;
    }

    .skill-tag {
        font-size: 10px;
        padding: 1px 6px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 11px;
    }

    #hn-nav {
        padding: 1px 0;
    }

    #content {
        margin-top: 45px;
        padding: 0 3px;
    }

    .itemlist td {
        padding: 3px 4px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .project-header {
        gap: 6px;
    }

}

/* Print styles */
@media print {
    #hn-nav {
        position: static;
        background: #ffffff;
        border-bottom: 1px solid #000000;
    }

    #hn-nav .pagetop {
        color: #000000;
    }


    body {
        background: #ffffff;
    }

    .itemlist {
        border: 1px solid #000000;
    }
}