/* === Section-Specific Styles === */

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-lg);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 23px,
            rgba(0,0,0,0.03) 23px,
            rgba(0,0,0,0.03) 24px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 23px,
            rgba(0,0,0,0.03) 23px,
            rgba(0,0,0,0.03) 24px
        );
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.hero-logo-placeholder {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: var(--space-md);
}

.hero-logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-logo-text {
    font-family: var(--font-pixel);
    font-size: 24px;
    text-align: center;
    color: var(--brand-orange);
    line-height: 1.2;
}

.hero-title {
    font-family: var(--font-pixel);
    font-size: 48px;
    font-weight: normal;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-shadow: 2px 2px 0 var(--win-dark);
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.hero-buttons .retro-button {
    font-size: 16px;
    padding: var(--space-sm) var(--space-lg);
}

/* --- Portfolio Section --- */
.portfolio-card .retro-window__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.portfolio-screenshot {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667788 0%, #445566 100%);
}

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

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667788 0%, #445566 100%);
    color: #AABBCC;
    font-family: var(--font-mono);
    font-size: 14px;
}

.portfolio-card__title {
    font-family: var(--font-pixel);
    font-size: 22px;
    font-weight: normal;
    margin-top: var(--space-xs);
}

.portfolio-card__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.portfolio-card__status {
    margin-top: var(--space-xs);
}

.portfolio-card__status-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: var(--space-xs);
}

.portfolio-card__actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.portfolio-card__actions .retro-button {
    flex: 1;
    font-size: 13px;
}

/* --- Dev Blog Section --- */
.devblog-window .retro-window__body--white {
    max-height: 500px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
}

.devblog-window .blog-post__title {
    font-family: var(--font-pixel);
}

.devblog-window .blog-post p {
    font-family: var(--font-body);
}

/* Scrollbar styling for the dev blog */
.devblog-window .retro-window__body--white::-webkit-scrollbar {
    width: 16px;
}

.devblog-window .retro-window__body--white::-webkit-scrollbar-track {
    background: var(--win-bg);
    border-left: 1px solid var(--win-dark);
}

.devblog-window .retro-window__body--white::-webkit-scrollbar-thumb {
    background: var(--win-surface);
    border: 1px solid;
    border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
}

.devblog-window .retro-window__body--white::-webkit-scrollbar-button {
    background: var(--win-surface);
    border: 1px solid;
    border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
    height: 16px;
}

/* --- News Section --- */
.news-board {
    padding: var(--space-md);
}

/* --- Social Section --- */
#social {
    padding: var(--space-xl) 0;
}

#social .retro-section-title {
    margin-bottom: var(--space-lg);
}

.social-links .retro-button {
    font-size: 15px;
    padding: var(--space-sm) var(--space-lg);
    min-width: 100px;
}

/* --- Footer --- */
.site-footer {
    margin-top: var(--space-xl);
}

.site-footer p {
    margin-bottom: var(--space-xs);
}

.site-footer a {
    color: var(--link-default);
}

/* --- Mobile Adjustments --- */
@media (max-width: 639px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 14px;
    }

    .hero-logo-placeholder {
        width: 120px;
        height: 120px;
    }

    .retro-section-title {
        font-size: 24px;
    }

    .retro-button {
        padding: 10px 16px;
        font-size: 15px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-buttons .retro-button {
        width: 100%;
    }

    .portfolio-card__actions {
        flex-direction: column;
    }

    .portfolio-card__actions .retro-button {
        text-align: center;
    }

    .devblog-window .retro-window__body--white {
        max-height: 400px;
    }

    .footer-badges {
        flex-direction: column;
        align-items: center;
    }
}
