/*
Theme Name: WanIndie
Theme URI: https://wanindie.com
Description: WanIndie - Western Indie Games for Chinese Community
Version: 1.0
Author: Artas
*/

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

body {
    background: #0d0d1a;
    color: #e8e0ff;
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a { color: #a78bfa; text-decoration: none; }
a:hover { color: #7c3aed; }

#header {
    background: #13132a;
    border-bottom: 1px solid #2d1f6e;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

#header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

#site-logo { font-size: 22px; font-weight: 700; color: #e8e0ff; letter-spacing: 1px; }
#site-logo span { color: #7c3aed; }
#main-nav { display: flex; gap: 24px; }
#main-nav a { color: #9d8fff; font-size: 14px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
#main-nav a:hover { color: #e8e0ff; border-bottom-color: #7c3aed; }

#hero {
    background: linear-gradient(135deg, #13132a 0%, #1e1040 100%);
    border-bottom: 1px solid #2d1f6e;
    padding: 48px 24px;
    text-align: center;
}

#hero h1 { font-size: 36px; color: #e8e0ff; font-weight: 700; margin-bottom: 12px; }
#hero h1 span { color: #7c3aed; }
#hero p { color: #9d8fff; font-size: 16px; max-width: 600px; margin: 0 auto; }

#main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.post-card {
    background: #13132a;
    border: 1px solid #2d1f6e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.post-card:hover { transform: translateY(-3px); border-color: #7c3aed; }
.post-card img { width: 100%; height: 180px; object-fit: cover; }
.post-card-body { padding: 16px; }

.post-card-category {
    font-size: 11px;
    font-weight: 600;
    color: #a78bfa;
    background: #2d1f6e;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.post-card h2 { font-size: 16px; color: #e8e0ff; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.post-card p { font-size: 13px; color: #9d8fff; line-height: 1.6; margin-bottom: 12px; }
.post-card-meta { font-size: 12px; color: #6b5fa8; display: flex; justify-content: space-between; }

.sidebar-widget { background: #13132a; border: 1px solid #2d1f6e; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.sidebar-widget h3 { font-size: 14px; font-weight: 600; color: #7c3aed; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #2d1f6e; }

.single-post-header { background: #13132a; border-bottom: 1px solid #2d1f6e; padding: 40px 24px; }
.single-post-header h1 { max-width: 800px; margin: 0 auto 12px; font-size: 28px; color: #e8e0ff; line-height: 1.4; }
.single-post-content { max-width: 800px; margin: 40px auto; padding: 0 24px; color: #c4b5fd; line-height: 1.8; }
.single-post-content h2 { color: #e8e0ff; font-size: 22px; margin: 32px 0 16px; padding-left: 12px; border-left: 3px solid #7c3aed; }
.single-post-content h3 { color: #a78bfa; font-size: 18px; margin: 24px 0 12px; }
.single-post-content p { margin-bottom: 16px; }
.single-post-content a { color: #7c3aed; border-bottom: 1px solid #4c1d95; }

.affiliate-btn { display: inline-block; background: #7c3aed; color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; margin: 20px 0; transition: background 0.2s; }
.affiliate-btn:hover { background: #6d28d9; color: #fff; }

#footer { background: #13132a; border-top: 1px solid #2d1f6e; padding: 32px 24px; text-align: center; color: #6b5fa8; font-size: 13px; margin-top: 60px; }
#footer a { color: #9d8fff; }

@media (max-width: 768px) {
    #main-content { grid-template-columns: 1fr; }
    #hero h1 { font-size: 24px; }
    #main-nav { gap: 14px; }
}
