/* ===========================
   Notion-Inspired Minimal Site
   =========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Notion-style Dark Palette */
    --bg-primary: #191919;
    --bg-secondary: #1f1f1f;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #9b9b9b;
    --border-color: #2f2f2f;
    --border-hover: #404040;
    --accent-subtle: rgba(255, 255, 255, 0.05);
    --scrollbar-track: #191919;
    --scrollbar-thumb: #3a3a3a;
    --scrollbar-thumb-hover: #4a4a4a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Header & Navigation
   =========================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

nav {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    font-size: 16px;
}

.nav-links {
    display: flex;
    gap: 16px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-profile {
    color: var(--text-secondary) !important;
}

.nav-profile:hover {
    color: var(--text-primary) !important;
}

/* Theme Toggle Button - hidden for minimal design */
.theme-toggle {
    display: none;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    padding: 120px 0 60px;
    background: var(--bg-primary);
    text-align: left;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: 0 0 4px 0;
    border-left: 3px solid var(--text-secondary);
    padding-left: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 60px;
    text-align: left;
    display: flex;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 40px;
}

/* Breadcrumb navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-icon {
    font-size: 16px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--text-secondary);
    margin: 0 4px;
}

.breadcrumb-current {
    color: var(--text-primary);
}

/* ===========================
   Buttons & Links
   =========================== */

.btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
    justify-content: flex-start;
}

.btn:hover {
    background: var(--bg-secondary);
}

.btn span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-primary:hover {
    background: var(--bg-secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===========================
   Section Headers
   =========================== */

.section-header {
    text-align: left;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===========================
   Featured Games Section
   =========================== */

.featured-games {
    padding: 60px 0;
    background: var(--bg-primary);
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-card {
    background: transparent;
    border: none;
    border-radius: 3px;
    padding: 8px 12px;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-card:hover {
    background: var(--bg-secondary);
}

.game-image {
    display: none;
}

.game-image-placeholder {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.game-badge {
    display: none;
}

.game-info {
    padding: 0;
    flex: 1;
    min-width: 0;
}

.game-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card:hover .game-info h3 {
    color: var(--text-primary);
}

.game-info p {
    display: none;
}

.game-tags {
    display: none;
}

.tag {
    padding: 2px 6px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 400;
}

.game-meta {
    display: flex;
    gap: 8px;
    padding-top: 0;
    border-top: none;
    margin-left: auto;
}

.meta-item {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===========================
   Software Section
   =========================== */

.software-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

/* ===========================
   Blog Section
   =========================== */

.blog-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

/* Blog Controls */
.blog-controls {
    margin-bottom: 32px;
    display: none; /* Hide search and filters for minimal design */
}

.blog-search-wrapper {
    position: relative;
    width: 100%;
}

.blog-search {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s ease;
}

.blog-search:focus {
    outline: none;
    border-color: var(--border-hover);
}

.blog-search::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    display: none;
}

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

.filter-tag {
    padding: 6px 12px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.filter-tag:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-tag.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-card:has(pre),
.blog-card:has(img) {
    min-height: auto;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(102, 192, 244, 0.3);
    transform: translateY(-2px);
}

.blog-date {
    font-size: 13px;
    color: var(--steam-blue);
    font-weight: 500;
    margin-bottom: 0;
}

.blog-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog-card:hover h3 {
    color: var(--steam-blue);
}

.blog-card p {
    display: none;
}

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

.blog-tags .tag {
    background: rgba(102, 192, 244, 0.1);
    border: 1px solid rgba(102, 192, 244, 0.2);
    color: var(--steam-blue);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.blog-card .vote-container {
    margin-top: auto;
}

/* Blog Content Styling (minimal) */
.blog-card code {
    display: none;
}

.blog-card pre {
    display: none;
}

.blog-card img,
.blog-screenshot {
    display: none;
}

.blog-screenshot-caption {
    display: none;
}

/* ===========================
   About Section
   =========================== */

.about-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.about-intro {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px !important;
    font-weight: 400;
}

.about-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.skills-section {
    display: none; /* Hide for minimal design */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.skill-item {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
    transition: all 0.15s ease;
}

.skill-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.about-stats {
    display: none; /* Hide for minimal design */
}

.stat-card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 16px;
    text-align: center;
    transition: all 0.15s ease;
}

.stat-card:hover {
    background: var(--bg-secondary);
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===========================
   Footer
   =========================== */

footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 32px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-left p {
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-column h4 {
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-column a {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    nav {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero h1 {
        font-size: 32px;
    }

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

    .section-header h2 {
        font-size: 20px;
    }

    .featured-games,
    .software-section,
    .blog-section,
    .about-section {
        padding: 50px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .section-header h2 {
        font-size: 18px;
    }
}

/* ===========================
   Utilities
   =========================== */

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Selection */
::selection {
    background: var(--text-secondary);
    color: var(--bg-primary);
}

/* Remove animations for minimal design */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Accessibility Enhancements
   =========================== */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    border: 2px solid var(--text-primary);
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
    left: 10px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Blog card link wrapper */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card {
    position: relative;
}

.blog-card-link:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Enhanced focus indicators for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Focus visible for modern browsers */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Remove outline when not using keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure game cards have proper focus states */
.game-card:focus,
.game-card:focus-within {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
    background: var(--bg-secondary);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
