
/* Thematic CSS for Summery Cool - Mobile Game UI Aesthetic */
:root {
    --bg-dark: #0d1117;
    --bg-panel: #161b22;
    --bg-card: #21262d;
    --primary: #3b82f6; 
    --primary-dark: #2563eb;
    --success: #10b981; 
    --success-dark: #059669;
    --warning: #f59e0b; 
    --warning-dark: #d97706;
    --danger: #ef4444; 
    --danger-dark: #dc2828;
    --purple: #8b5cf6;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --hud-bg: rgba(13, 17, 23, 0.85);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --shadow-btn: 0 6px 0 0 rgba(0,0,0,0.4);
    --shadow-btn-hover: 0 4px 0 0 rgba(0,0,0,0.4);
    --shadow-btn-active: 0 0px 0 0 rgba(0,0,0,0.4);
    --shadow-panel: 0 10px 30px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.05);
    
    --anim-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.05), transparent 25%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231f2937' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: #fff; letter-spacing: 0.5px; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; object-fit: cover; }

.hud-container {
    position: fixed; top: 10px; left: 10px; right: 10px; z-index: 1000; pointer-events: none; display: flex; justify-content: center;
}
.hud-nav {
    pointer-events: auto; background: var(--hud-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--border-color); border-radius: var(--radius-pill); padding: 8px 16px; display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1200px; box-shadow: var(--shadow-panel);
}
.hud-brand {
    display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--warning); text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hud-brand img { height: 44px; width: 44px; border-radius: 50%; border: 2px solid var(--warning); }
.hud-links { display: flex; gap: 20px; }
.hud-links a {
    font-weight: 700; font-size: 1.05rem; color: var(--text-main); text-transform: uppercase; transition: color 0.2s; position: relative; padding: 5px 0;
}
.hud-links a:hover, .hud-links a.active { color: var(--success); }
.hud-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px; background: var(--success); transition: width 0.3s var(--anim-spring); border-radius: 2px;
}
.hud-links a:hover::after, .hud-links a.active::after { width: 100%; }
.hud-stats { display: flex; gap: 15px; background: rgba(0,0,0,0.3); padding: 6px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-color); }
.hud-stat-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 1.1rem; }
.stat-icon { font-size: 1.2rem; }
.stat-val.gold { color: var(--warning); }
.stat-val.gems { color: var(--success); }

.mobile-menu-btn { display: none; background: var(--bg-card); border: 1px solid var(--border-color); color: white; font-size: 1.2rem; cursor: pointer; padding: 8px 12px; border-radius: var(--radius-sm); }
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 17, 23, 0.95); z-index: 2000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-menu-content { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.mobile-menu-content a { font-family: var(--font-heading); font-size: 2rem; color: white; text-transform: uppercase; }
.mobile-menu-content a:hover { color: var(--success); }
.close-menu { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }

main { padding-top: 100px; min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px;
    font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; color: white;
    background-color: var(--primary); border: 2px solid #000; border-radius: var(--radius-md);
    box-shadow: var(--shadow-btn); transition: all 0.1s; cursor: pointer; position: relative; top: 0; text-shadow: 0 2px 2px rgba(0,0,0,0.3);
}
.btn:hover { top: 2px; box-shadow: var(--shadow-btn-hover); filter: brightness(1.1); }
.btn:active { top: 6px; box-shadow: var(--shadow-btn-active); }
.btn-success { background-color: var(--success); }
.btn-warning { background-color: var(--warning); color: #000; text-shadow: none; }
.btn-danger { background-color: var(--danger); }
.btn-purple { background-color: var(--purple); }

.section-title {
    font-size: 3rem; text-align: center; margin-bottom: 40px; background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.text-center { text-align: center; }
.mt-4 { margin-top: 40px; } .mb-4 { margin-bottom: 40px; }

.game-panel {
    background: var(--bg-panel); border: 2px solid var(--border-color); border-radius: var(--radius-lg); padding: 30px;
    box-shadow: var(--shadow-panel); position: relative; transition: transform 0.3s var(--anim-spring), border-color 0.3s;
}
.game-panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple)); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
}
.game-panel:hover { transform: translateY(-5px); border-color: var(--primary); }

.badge {
    display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; background: rgba(59, 130, 246, 0.2); color: var(--primary); border: 1px solid var(--primary);
}
.badge.gold { background: rgba(245, 158, 11, 0.2); color: var(--warning); border-color: var(--warning); }
.badge.green { background: rgba(16, 185, 129, 0.2); color: var(--success); border-color: var(--success); }
.badge.purple { background: rgba(139, 92, 246, 0.2); color: var(--purple); border-color: var(--purple); }

/* Hero Section */
.hero {
    min-height: 80vh; display: flex; align-items: center; position: relative; overflow: hidden; border-radius: var(--radius-lg);
    margin-bottom: 60px; background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 2px solid var(--border-color); box-shadow: var(--shadow-panel); padding: 40px; margin-top: 20px;
}
.hero-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; mix-blend-mode: luminosity; z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 600px;
}
.hero-title { font-size: 4rem; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.hero-title span { color: var(--warning); }
.hero-desc { font-size: 1.2rem; color: var(--text-main); margin-bottom: 30px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Component: Level Progress Bar */
.level-bar-container { background: rgba(0,0,0,0.4); border: 2px solid var(--border-color); border-radius: var(--radius-pill); height: 24px; position: relative; overflow: hidden; margin-bottom: 10px; }
.level-bar-fill { background: linear-gradient(90deg, var(--success-dark), var(--success)); height: 100%; width: 75%; border-right: 2px solid #fff; box-shadow: inset 0 2px 4px rgba(255,255,255,0.3); }
.level-text { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 0.9rem; line-height: 24px; color: white; text-shadow: 1px 1px 0 #000; }

/* Component: Item Card (Article) */
.item-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s; position: relative; display: flex; flex-direction: column; height: 100%;
}
.item-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-color: var(--primary); z-index: 10; }
.item-image { height: 200px; width: 100%; object-fit: cover; border-bottom: 2px solid var(--border-color); }
.item-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.item-meta { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.item-title { font-size: 1.4rem; margin-bottom: 10px; color: white; }
.item-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.item-loot { background: rgba(0,0,0,0.3); padding: 10px; border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; border: 1px dashed var(--border-color); margin-top: auto; }
.item-loot-text { font-size: 0.8rem; font-weight: 700; color: var(--warning); text-transform: uppercase; }

/* Mechanics Deep Dive Section */
.mechanic-row { display: flex; gap: 40px; align-items: center; margin-bottom: 60px; background: var(--bg-panel); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 30px; box-shadow: var(--shadow-panel); }
.mechanic-row:nth-child(even) { flex-direction: row-reverse; }
.mechanic-img { flex: 1; position: relative; }
.mechanic-img img { width: 100%; border-radius: var(--radius-md); border: 2px solid var(--primary); box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
.mechanic-img::after { content: '🔍'; position: absolute; bottom: -15px; right: -15px; background: var(--bg-card); border: 2px solid var(--primary); border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-btn); }
.mechanic-text { flex: 1; }
.mechanic-title { font-size: 2.2rem; margin-bottom: 15px; color: var(--warning); display: flex; align-items: center; gap: 10px; }
.mechanic-title i { font-style: normal; font-size: 2.5rem; }
.mechanic-stats { display: flex; gap: 15px; margin-top: 20px; }
.stat-box { background: var(--bg-card); padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); flex: 1; text-align: center; }
.stat-box-num { display: block; font-size: 1.8rem; font-family: var(--font-heading); color: var(--success); }
.stat-box-label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; }

/* Article Specific Styles */
.article-header { text-align: center; max-width: 900px; margin: 0 auto 40px; padding: 40px 20px; background: var(--bg-panel); border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-panel); position: relative; overflow: hidden; }
.article-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--danger), var(--warning)); }
.article-meta { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.article-title { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.article-lead { font-size: 1.25rem; color: #a1a1aa; max-width: 700px; margin: 0 auto; }
.article-body { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; color: #d1d5db; }
.article-body h2 { font-size: 2rem; margin: 40px 0 20px; color: var(--primary); padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.article-body h3 { font-size: 1.5rem; margin: 30px 0 15px; color: white; }
.article-body p { margin-bottom: 20px; }
.article-body ul { margin-bottom: 20px; padding-left: 20px; }
.article-body li { margin-bottom: 10px; position: relative; padding-left: 10px; }
.article-body li::before { content: '✦'; position: absolute; left: -15px; color: var(--warning); font-size: 0.8rem; top: 4px; }
.article-body img { margin: 40px 0; border: 2px solid var(--border-color); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 100%; }
.info-box { background: rgba(59, 130, 246, 0.1); border-left: 4px solid var(--primary); padding: 20px; margin: 30px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.info-box h4 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; }

/* Tree/Timeline Layout */
.skill-tree { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.skill-tree::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--border-color); transform: translateX(-50%); border-radius: 2px; }
.skill-node { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 60px; position: relative; width: 50%; padding-right: 40px; }
.skill-node:nth-child(even) { align-self: flex-end; justify-content: flex-start; padding-right: 0; padding-left: 40px; left: 50%; }
.skill-icon { position: absolute; right: -25px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: var(--bg-dark); border: 4px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; z-index: 2; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); }
.skill-node:nth-child(even) .skill-icon { right: auto; left: -25px; }
.skill-node.locked .skill-icon { border-color: var(--border-color); filter: grayscale(1); }
.skill-node.locked .skill-content { opacity: 0.5; }
.skill-content { background: var(--bg-panel); padding: 25px; border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: var(--shadow-panel); width: 100%; }
.skill-content h3 { color: white; margin-bottom: 10px; font-size: 1.4rem; }

/* Form Styles */
.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.9rem; }
.form-control { width: 100%; padding: 15px; background: var(--bg-dark); border: 2px solid var(--border-color); border-radius: var(--radius-sm); color: white; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* Footer */
footer { background: #06090e; padding: 60px 0 20px; margin-top: 80px; border-top: 4px solid var(--border-color); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; position: relative; z-index: 2; }
.footer-col h3 { color: var(--warning); margin-bottom: 20px; font-size: 1.5rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); transition: color 0.2s; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-links a::before { content: '►'; font-size: 0.6rem; color: var(--primary); }
.footer-links a:hover { color: white; transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; position: relative; z-index: 2; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hud-links, .hud-stats { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 3rem; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .mechanic-row, .mechanic-row:nth-child(even) { flex-direction: column; }
    .mechanic-img img { width: 100%; }
}
@media (max-width: 768px) {
    main { padding-top: 80px; }
    .hero { padding: 30px 20px; min-height: 60vh; }
    .hero-title { font-size: 2.2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .skill-tree::before { left: 20px; }
    .skill-node { width: 100%; padding-left: 60px !important; padding-right: 0 !important; left: 0 !important; justify-content: flex-start !important; }
    .skill-icon { left: -5px !important; right: auto !important; width: 40px; height: 40px; font-size: 1.2rem; }
    .article-title { font-size: 2.2rem; }
}
