@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f4e8c1;
    background-image:
        radial-gradient(ellipse at top, #fdf6e3 0%, transparent 60%),
        radial-gradient(ellipse at bottom, #e8d5a3 0%, transparent 60%);
    color: #3d2b1f;
    line-height: 1.7;
    min-height: 100vh;
}

/* Language Switch */
.lang-switch {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 200;
    display: flex;
    gap: 4px;
    background: rgba(90,62,27,0.9);
    border-radius: 20px;
    padding: 4px;
}

.lang-switch a {
    color: #c9a96e;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s;
}

.lang-switch a.active {
    background: #ffd93d;
    color: #3d2b1f;
}

.lang-switch a:hover:not(.active) {
    color: #ffd93d;
}

/* Header */
header {
    background: linear-gradient(180deg, #5a3e1b 0%, #7a5a30 100%);
    border-bottom: 6px solid #3d2b1f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 2rem 1rem;
    text-align: center;
}

header::after {
    content: '';
    display: block;
    height: 4px;
    background: repeating-linear-gradient(90deg, #c9a96e 0px, #c9a96e 8px, #a67c52 8px, #a67c52 16px);
    margin-top: 1rem;
}

.header-content h1 {
    font-size: 2.4rem;
    color: #ffd93d;
    text-shadow: 2px 2px 0 #3d2b1f, 0 0 10px rgba(255,217,61,0.3);
    letter-spacing: 2px;
}

.subtitle {
    color: #c9a96e;
    font-size: 1rem;
    margin-top: 0.3rem;
}

/* Nav for subpages */
nav {
    background: linear-gradient(180deg, #5a3e1b 0%, #7a5a30 100%);
    padding: 0 1rem;
    border-bottom: 6px solid #3d2b1f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}

nav .site-title {
    color: #ffd93d;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}

nav .nav-links {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    list-style: none;
}

nav .nav-links a {
    color: #f4e8c1;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

nav .nav-links a:hover {
    background: rgba(255,217,61,0.2);
    color: #ffd93d;
}

nav .nav-links a.active {
    background: #ffd93d;
    color: #3d2b1f;
    font-weight: bold;
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Guide Grid (homepage) */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.guide-card {
    background: #fff8e7;
    border: 3px solid #c9a96e;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: #3d2b1f;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #ffd93d;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.guide-card h2 {
    font-size: 1.3rem;
    color: #5a3e1b;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.guide-card p {
    font-size: 0.9rem;
    color: #6b5a4e;
}

.card-spring { border-top: 4px solid #7cad3e; }
.card-heart { border-top: 4px solid #e85d75; }
.card-water { border-top: 4px solid #4a9aca; }
.card-mine { border-top: 4px solid #8b7355; }
.card-bundle { border-top: 4px solid #9b59b6; }
.card-desert { border-top: 4px solid #e8a838; }
.card-island { border-top: 4px solid #2ecc71; }
.card-tips { border-top: 4px solid #f39c12; }

/* Ad Slots */
.ad-slot {
    max-width: 1200px;
    margin: 1.5rem auto;
    text-align: center;
    padding: 0 1rem;
}

.ad-placeholder {
    background: #e8d5a3;
    border: 2px dashed #c9a96e;
    border-radius: 6px;
    padding: 1.2rem;
    color: #8b7355;
    font-size: 0.85rem;
}

.ad-mid .ad-placeholder {
    max-width: 300px;
    margin: 0 auto;
}

/* Content page styles */
.page-content {
    background: #fff8e7;
    border: 2px solid #c9a96e;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.page-content h1 {
    color: #5a3e1b;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #c9a96e;
}

.page-content h2 {
    color: #5a3e1b;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e8d5a3;
}

.page-content h3 {
    color: #6b4c2a;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.15rem;
}

.page-intro {
    color: #6b5a4e;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    background: rgba(124,173,62,0.1);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border-left: 4px solid #7cad3e;
}

/* Season Tabs */
.season-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.season-tab {
    padding: 0.6rem 1.5rem;
    border: 3px solid #c9a96e;
    background: #fff8e7;
    color: #5a3e1b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.season-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.season-tab[data-season="spring"].active { background: #7cad3e; border-color: #5a8a2a; color: white; }
.season-tab[data-season="summer"].active { background: #e8a838; border-color: #c48a20; color: white; }
.season-tab[data-season="fall"].active { background: #c0582e; border-color: #a04020; color: white; }
.season-tab[data-season="winter"].active { background: #6ba3be; border-color: #4a8aa8; color: white; }

.season-content { display: none; }
.season-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fffdf5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid #e8d5a3;
}

thead { background: #5a3e1b; }

th {
    padding: 0.7rem 0.8rem;
    text-align: left;
    color: #ffd93d;
    font-weight: 700;
    font-size: 0.85rem;
}

td {
    padding: 0.6rem 0.8rem;
    border-top: 1px solid #e8d5a3;
    font-size: 0.88rem;
}

tbody tr:nth-child(even) { background: #fdf3d9; }
tbody tr:hover { background: #f0e4b8; }
tr.recommended { background: #e8f5d4 !important; }
tr.recommended td:first-child::before { content: "\2605 "; color: #e8a838; }
tr.legendary { background: #f3e4f7 !important; }
tr.legendary td:first-child::before { content: "\1F451 "; }

/* Tips Box */
.tips-box {
    background: #fffdf5;
    border: 2px solid #7cad3e;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tips-box h4 {
    color: #4a7c23;
    margin-bottom: 0.8rem;
}

.tips-box ul, .tips-box ol { padding-left: 1.5rem; }
.tips-box li { margin-bottom: 0.4rem; color: #4a3c30; }

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f4fd, #fffdf5);
    border: 2px solid #6ba3be;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box h4 { color: #3a7a96; margin-bottom: 0.8rem; }
.info-box ul { padding-left: 1.5rem; }
.info-box li { margin-bottom: 0.4rem; }

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    background: #fffdf5;
    border: 2px solid #c9a96e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.info-card-header {
    background: linear-gradient(90deg, #5a3e1b, #7a5a30);
    padding: 0.7rem 1rem;
    font-weight: bold;
    color: #ffd93d;
    font-size: 0.95rem;
}

.info-card-body {
    padding: 1rem;
}

.info-card-body p {
    margin-bottom: 0.3rem;
    font-size: 0.88rem;
}

/* Level cards */
.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.level-card {
    background: #fffdf5;
    padding: 1.2rem;
    border-radius: 8px;
    border: 2px solid #c9a96e;
}

.level-card h4 { color: #5a3e1b; margin-bottom: 0.8rem; }
.level-card ul { list-style: none; }
.level-card li { margin-bottom: 0.3rem; font-size: 0.9rem; }

/* Milestone */
.milestone-list { margin: 1.5rem 0; }

.milestone {
    padding: 0.6rem 1rem;
    border-left: 4px solid #e8a838;
    margin-bottom: 0.5rem;
    background: #fffdf5;
    border-radius: 0 6px 6px 0;
}

/* Bundle */
.bundle-rooms { display: grid; gap: 1.5rem; }

.bundle-room {
    background: #fffdf5;
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px solid #c9a96e;
}

.bundle-room h3 {
    color: #5a3e1b;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed #c9a96e;
}

.bundle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
}

.bundle-item {
    background: #fdf3d9;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #e8d5a3;
}

.bundle-item h4 { color: #6b4c2a; font-size: 0.9rem; margin-bottom: 0.3rem; }
.bundle-item p { font-size: 0.82rem; color: #6b5a4e; }

.reward {
    margin-top: 1rem;
    padding: 0.7rem;
    background: linear-gradient(90deg, #e8f5d4, #d4efc0);
    border-radius: 6px;
    color: #3d6b1b;
    font-weight: bold;
    text-align: center;
    border: 1px solid #7cad3e;
}

/* In-article ad */
.ad-inline {
    margin: 2rem 0;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #7a5a30 0%, #5a3e1b 100%);
    color: #c9a96e;
    border-top: 6px solid #3d2b1f;
    margin-top: 3rem;
}

footer p { margin-bottom: 0.4rem; }

.footer-links a {
    color: #c9a96e;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: #ffd93d; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #e8d5a3; }
::-webkit-scrollbar-thumb { background: #a67c52; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #7a5a30; }

/* Responsive */
@media (max-width: 768px) {
    .header-content h1 { font-size: 1.8rem; }
    nav .nav-inner { gap: 0.5rem; }
    nav .nav-links a { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
    .guide-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
    .guide-card { padding: 1.5rem 1rem; }
    .card-grid { grid-template-columns: 1fr; }
    .page-content { padding: 1.5rem 1rem; }
    table { font-size: 0.8rem; }
    th, td { padding: 0.5rem; }
}

@media (max-width: 480px) {
    .header-content h1 { font-size: 1.4rem; }
    .guide-grid { grid-template-columns: 1fr; }
    .season-tab { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .lang-switch { top: 8px; right: 8px; }
}
