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

:root {
    --primary-color: #2d5016;
    --secondary-color: #4a7c1f;
    --accent-color: #8bc34a;
    --dark-bg: #1a2f0a;
    --light-bg: #f5f9f0;
    --text-dark: #2d3e1b;
    --text-light: #e8f5e9;
    --border-color: #c5e1a5;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2d5016 0%, #1a3a0f 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
    background-color: #9ccc65;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--light-bg);
}

/* Introduction Grid */
.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.intro-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.intro-features {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
}

.intro-features h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Guide Cards */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
}

.card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.card-link:hover {
    color: var(--accent-color);
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.topic-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 2px solid var(--border-color);
    text-align: center;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
}

.topic-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.topic-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.topic-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Updates List */
.updates-list {
    max-width: 900px;
    margin: 0 auto;
}

.update-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--accent-color);
}

.update-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.update-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.update-item p {
    color: #555;
    line-height: 1.7;
}

/* SEO Content */
.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.seo-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-list li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .intro-grid,
    .guide-cards,
    .topics-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Additional Styles for Sub-pages */

/* Rarity Cards */
.rarity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.rarity-card {
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.rarity-card:hover {
    transform: translateY(-3px);
}

.rarity-card.common {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.rarity-card.rare {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.rarity-card.epic {
    background: linear-gradient(135deg, #9c27b0, #ab47bc);
}

.rarity-card.legendary {
    background: linear-gradient(135deg, #ff9800, #ffa726);
}

.rarity-card.mythic {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.rarity-card.super {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.rarity-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.rarity-card p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Crops Table */
.crops-table {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

thead {
    background: var(--primary-color);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

tbody tr:hover {
    background: var(--light-bg);
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.tag.common { background: #4caf50; }
.tag.rare { background: #2196f3; }
.tag.epic { background: #9c27b0; }
.tag.legendary { background: #ff9800; }
.tag.mythic { background: #f44336; }

/* Mutation Cards */
.mutation-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.mutation-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 3px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.mutation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.mutation-card.silver {
    border-color: #c0c0c0;
}

.mutation-card.gold {
    border-color: #ffd700;
}

.mutation-card.rainbow {
    border: 3px solid;
    border-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet) 1;
}

.mutation-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.multiplier {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.5rem 0;
}

.mutation-table {
    margin-top: 2rem;
    width: 100%;
}

/* Cycle Info */
.cycle-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.cycle-phase {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid;
}

.cycle-phase.day {
    border-color: #ffd700;
}

.cycle-phase.dusk {
    border-color: #ff9800;
}

.cycle-phase.night {
    border-color: #3f51b5;
}

.cycle-phase h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Defense Strategies */
.defense-strategies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.strategy-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
}

.strategy-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.strategy-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.strategy-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Pets Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pet-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
}

.pet-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pet-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pet-rarity {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pet-rarity.rare { color: #2196f3; }
.pet-rarity.epic { color: #9c27b0; }
.pet-rarity.legendary { color: #ff9800; }
.pet-rarity.mythic { color: #f44336; }

.config-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.config-section h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem;
}

.config-section h3:first-child {
    margin-top: 0;
}

/* Guides Page */
.guide-step {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.guide-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-list {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.step-list li {
    margin-bottom: 0.75rem;
}

.progression-timeline {
    max-width: 800px;
    margin: 2rem auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 50px;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--border-color);
}

.timeline-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.3);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card ul {
    padding-left: 1.5rem;
}

.tip-card li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 2rem auto;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--accent-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .rarity-grid,
    .mutation-cards,
    .cycle-info,
    .defense-strategies,
    .pets-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item::after {
        display: none;
    }
}