/* 
 * fixlykit - Guides Index Page Styles
 * Organized by component structure for better maintainability
 */

/* =============================================================================
 * GUIDES HERO SECTION
 * ============================================================================= */

.guides-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guides-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.guides-hero-content {
    position: relative;
    z-index: 1;
}

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

.guides-hero h1 .fas {
    margin-right: 1rem;
    font-size: 2.5rem;
}

.guides-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

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

.guides-stat {
    text-align: center;
}

.guides-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

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

/* =============================================================================
 * FILTER CONTROLS
 * ============================================================================= */

.guides-section {
    padding: 80px 0;
    background: var(--light-color);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-color);
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.filter-btn .fas {
    margin-right: 0.5rem;
}

/* =============================================================================
 * GUIDES GRID AND CARD STYLES
 * ============================================================================= */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease;
}

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

.guide-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.guide-card.featured {
    border-color: #f59e0b;
}

.guide-card.featured .guide-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* =============================================================================
 * GUIDE CARD COMPONENTS
 * ============================================================================= */

.guide-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 2rem;
    text-align: center;
    position: relative;
}

.guide-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.guide-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-badge.tool {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.guide-badge.writing {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.guide-badge.learning {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.guide-badge.faq {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.guide-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-content h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
}

.guide-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.95rem;
}

.guide-meta {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-item .fas {
    color: var(--primary-color);
}

.guide-footer {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    text-align: center;
}

.guide-cta {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

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

.guide-card:hover .guide-cta .fas {
    transform: translateX(5px);
}

.guide-cta .fas {
    transition: transform 0.3s;
}

/* =============================================================================
 * RESPONSIVE DESIGN
 * ============================================================================= */

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

    .guides-hero h1 .fas {
        font-size: 1.8rem;
    }

    .guides-hero p {
        font-size: 1.1rem;
    }

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

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

    .filter-controls {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .guide-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .guides-hero {
        padding: 60px 0;
    }

    .guides-section {
        padding: 60px 0;
    }

    .guide-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

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