/* Community Page Specific Styles */
/* Import or extend from main style.css if needed, but here it's standalone with additions */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --quest-color: #10b981; /* New for quests */
    --legend-color: #fde047; /* New for legends */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation styles (copied/adapted) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.section-intro  {
   color: black;
}

.story-section {
    background: var(--bg-light);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: scale(1.03);
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.treasure-section {
    background: var(--gradient);
    color: var(--white);
}

.treasure-section .stat-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.chronicles-section {
    background: var(--bg-dark);
    color: var(--white);
}

.chronicles-section .section-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.quest-section {
    background: var(--bg-light);
}

.quest-section .guide-card {
    border: 2px solid var(--quest-color);
}

.quest-section .guide-icon {
    background: linear-gradient(135deg, var(--quest-color), var(--primary-color));
}

.realm-section .category-card {
    background: linear-gradient(to bottom right, var(--white), #f3f4f6);
}

.realm-section .game-count {
    display: block;
    margin-top: 0.5rem;
}

.scroll-section {
    background: #f9fafb;
}

.accordion details {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

.accordion summary::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1rem;
    transition: transform 0.3s;
}

.accordion details[open] summary::after {
    transform: rotate(180deg);
}

.accordion p {
    padding: 0 1rem 1rem;
}

.honor-section .community-features li i {
    color: var(--legend-color);
}

.portal-section {
    background: var(--gradient);
    color: var(--white);
}

.portal-section .section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.portal-section .contact-form input,
.portal-section .contact-form textarea {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.portal-section .contact-form input::placeholder,
.portal-section .contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.portal-section .privacy-group label {
    color: var(--white);
}

.portal-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

/* Add more custom styles as needed */

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Animations (extend existing) */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-color); }
    50% { box-shadow: 0 0 20px var(--accent-color); }
    100% { box-shadow: 0 0 5px var(--accent-color); }
}

.story-card:hover {
    animation: glow 1.5s infinite;
}

/* Footer adjustments */
.footer {
    background: var(--bg-dark);
    color: var(--white);
}

/* Mobile responsive (adapt as needed) */
@media (max-width: 768px) {
    .story-grid, .stats-grid, .guides-grid, .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .community-content {
        grid-template-columns: 1fr;
    }
}