/* global */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #131417;
    --bg-card: #1a1b1f;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #0a0a0b 0%, #1a1b1f 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 100vh;
}

/* Single column layout */
.single-column {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
}

.single-column h2:first-of-type {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.single-column .section-intro {
    margin-bottom: 2.5rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            ellipse at 20% 20%,
            var(--accent-glow) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 80% 80%,
            rgba(139, 92, 246, 0.08) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: -1;
}

h2,
.white {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: inline-block;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent-hover);
}

/* section 1 */
.section-1 {
    padding-top: 25vh;
    padding-left: 10vh;
    padding-right: 5vh;
    text-align: center;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--border);
    background: var(--gradient-2);
}

.animation {
    border: var(--border) solid 1px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.section-1 p {
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin: 0;
    color: var(--text-muted);
    font-weight: 300;
}

.section-1 h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-1 a {
    font-size: 1.5rem;
    padding: 10px;
}

/* section 2 */
.section-2 {
    padding: 8vh 6vh;
    width: 100%;
    max-width: 600px;
}

.section-2 h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    position: relative;
}

.section-2 h2:first-child {
    margin-top: 0;
}

.section-2 p {
    font-size: 1rem;
    padding-bottom: 10px;
    margin: 0;
    line-height: 1.7;
}

.section-2 > a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-2 > a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.section-2 > a h2 {
    margin: 0;
    font-size: 1rem;
}

/* List styling */
ul {
    padding-left: 0;
    margin: 0;
}

li {
    list-style: none;
    padding: 0.6rem 0.8rem;
    margin: 0.4rem 0;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

li:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
}

/* animations / utilities */
.section-2 a:hover {
    color: var(--accent-hover);
    cursor: pointer;
}

.section-1 a:hover {
    color: var(--accent-hover);
    cursor: pointer;
}

.white:hover {
    position: relative;
    padding-left: 10px;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-1,
.section-2 {
    animation: fadeInUp 0.6s ease-out forwards;
}

.section-2 {
    animation-delay: 0.2s;
}

/* Back link styling */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.back-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

/* Project cards */
.project-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.project-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-card .project-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.project-card h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    padding: 0;
    border: none;
    font-size: 1.1rem;
    display: block;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

/* Post/Blog cards */
.post-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.post-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.post-title {
    color: var(--text-primary);
    margin: 0.5rem 0;
    padding: 0;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.75rem 0 1rem 0;
    padding: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    transition: all 0.2s ease;
}

.read-more:hover {
    color: var(--accent-hover);
    gap: 0.25rem;
}

/* Post content (individual post pages) */
.post-content {
    margin-top: 1rem;
}

.post-content h1.post-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0.75rem 0 1.5rem 0;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.15rem;
    margin-top: 2rem;
}

.post-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    background: none;
    border: none;
    padding: 0.4rem 0;
    margin: 0;
    transform: none;
}

.post-content li:hover {
    background: none;
    border: none;
    transform: none;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-content code {
    background: var(--bg-card);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.post-content pre {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Section intro text */
.section-intro {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* List item titles (bold) */
li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection color */
::selection {
    background: var(--accent);
    color: white;
}

/* Game list styling */
.game-list {
    padding-left: 0;
}

.game-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
}

.game-status {
    font-size: 0.9rem;
    width: 24px;
    text-align: center;
}

.game-status.completed {
    color: #10b981;
}

.game-status.playing {
    color: var(--accent);
}

.game-status.dropped {
    color: #ef4444;
}

.game-platform {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-muted);
}

/* Review cards */
.reviews-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
}

.review-card {
    display: block;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.review-rating {
    display: inline-block;
    font-size: 0.8rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 4px;
}

.review-title {
    color: var(--text-primary);
    margin: 0.25rem 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.review-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

/* Game meta info (for review pages) */
.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.review-rating-large {
    font-size: 1rem;
    color: #fbbf24;
    padding: 0.3rem 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
}

.game-platform-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
}

.game-hours {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
}

/* media queries */
@media (max-width: 780px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section-1 {
        position: relative;
        height: auto;
        padding: 4rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .section-1 h2 {
        font-size: 2rem;
    }

    .section-2 {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    li {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
    }

    .project-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .section-1 {
        padding: 3rem 1.5rem;
    }

    .section-1 h2 {
        font-size: 1.75rem;
    }

    .section-2 {
        padding: 1.5rem 1rem;
    }

    h3 {
        font-size: 1rem;
    }
}
