/* Mystic Valley Website Styles */

:root {
    --primary-green: #4a7c59;
    --growth-green: #52b788;
    --crystal-blue: #4cc9f0;
    --fire-orange: #f77f00;
    --shadow-purple: #7209b7;
    --dark-bg: #0f0f1e;
    --light-text: #f4f4f9;
    --card-bg: #1a1a2e;
    --accent-gold: #ffd60a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
    min-height: 100vh;
}

/* Navigation */
nav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--growth-green);
    text-decoration: none;
}

nav .nav-links {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent-gold);
}

nav a.active {
    color: var(--growth-green);
}

/* Header/Hero Section */
header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.2), rgba(114, 9, 183, 0.2));
    border-bottom: 2px solid var(--primary-green);
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--growth-green), var(--crystal-blue), var(--shadow-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

header p {
    font-size: 1.2rem;
    color: var(--light-text);
    opacity: 0.9;
}

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

section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

section h2 {
    color: var(--growth-green);
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.5rem;
}

section h3 {
    color: var(--crystal-blue);
    margin: 1.5rem 0 0.5rem;
}

section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Magic School Colors */
.growth { color: var(--growth-green); }
.crystal { color: var(--crystal-blue); }
.fire { color: var(--fire-orange); }
.shadow { color: var(--shadow-purple); }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* Code Blocks */
pre {
    background: #1e1e2e;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 3px solid var(--crystal-blue);
}

code {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Blog Posts */
.blog-post {
    background: var(--card-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--growth-green);
}

.blog-post h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.blog-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Sprite Credits */
.sprite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.sprite-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.sprite-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--growth-green), var(--primary-green));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 183, 136, 0.4);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.screenshot {
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    nav .nav-links {
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    margin-top: 4rem;
    border-top: 2px solid var(--primary-green);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Progress Bar */
.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--growth-green), var(--crystal-blue));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.9rem;
    margin: 0.2rem;
}

.tag.magic { background: rgba(114, 9, 183, 0.3); }
.tag.farming { background: rgba(82, 183, 136, 0.3); }
.tag.combat { background: rgba(247, 127, 0, 0.3); }
.tag.system { background: rgba(76, 201, 240, 0.3); }