/* Guides Page Specific Styles */

/* Guides Hero Section */
.guides-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.guides-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="40">📚</text></svg>') repeat;
    opacity: 0.1;
    animation: float 25s infinite linear;
}

.guides-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.guides-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.guides-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.guide-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.guide-search input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.guide-search button {
    padding: 16px 20px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.guide-search button:hover {
    background: var(--secondary-color);
}

/* Filter Navigation */
.guide-filters {
    background: var(--bg-alt);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Guides Main Content */
.guides-main {
    padding: 4rem 0;
}

/* Featured Guides Section */
.featured-guides {
    margin-bottom: 5rem;
}

.featured-guides h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.featured-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured-guide {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 200px 1fr;
}

.featured-guide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.guide-thumbnail {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.guide-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guide-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-guide .guide-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.featured-guide h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.guide-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.guide-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.guide-category {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.guide-category.beginner {
    background: #e8f5e8;
    color: #2d6a2d;
}

.guide-category.advanced {
    background: #fff3cd;
    color: #856404;
}

.guide-category.pvp {
    background: #f8d7da;
    color: #721c24;
}

.guide-category.strategy {
    background: #d1ecf1;
    color: #0c5460;
}

.guide-category.updates {
    background: #e2e3e5;
    color: #383d41;
}

.read-time {
    color: var(--text-light);
}

.guide-date {
    color: var(--text-light);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* All Guides Section */
.all-guides {
    margin-bottom: 5rem;
}

.all-guides h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.guide-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.guide-card[data-category="beginner"] {
    border-left-color: #2ecc71;
}

.guide-card[data-category="advanced"] {
    border-left-color: #f39c12;
}

.guide-card[data-category="pvp"] {
    border-left-color: #e74c3c;
}

.guide-card[data-category="strategy"] {
    border-left-color: #3498db;
}

.guide-card[data-category="updates"] {
    border-left-color: #9b59b6;
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.guide-card p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.guide-card .guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.guide-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.guide-link:hover {
    color: var(--secondary-color);
}

/* Guide Categories Section */
.guide-categories {
    margin-bottom: 5rem;
}

.guide-categories h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.category-stats {
    background: var(--bg-alt);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

/* CTA Section */
.guide-cta {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--accent-color);
    color: white;
}

.cta-buttons .btn-primary:hover {
    background: #c0392b;
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: var(--dark-color);
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guides-hero h1 {
        font-size: 2rem;
    }

    .guide-search {
        flex-direction: column;
        border-radius: 12px;
    }

    .guide-search button {
        border-radius: 0 0 12px 12px;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .featured-guide {
        grid-template-columns: 1fr;
    }

    .guide-thumbnail {
        padding: 1.5rem;
    }

    .guide-emoji {
        font-size: 2rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .featured-guide .guide-content {
        padding: 1.5rem;
    }

    .guide-card {
        padding: 1.5rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
    }

    .guide-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-alt);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Results Highlight */
.search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--bg-alt);
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}