/**
 * Archive Guide De Lecture Styles
 * 
 * @package bdcomic_theme
 */

/* Archive Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.guide-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-item:hover .guide-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.no-image-placeholder .dashicons {
    font-size: 3rem;
}

.guide-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.guide-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-title a:hover {
    color: var(--primary-color);
}

.guide-collection {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guide-collection a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.guide-collection a:hover {
    text-decoration: underline;
}

.guide-level {
    margin-bottom: 1rem;
}

.level-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-débutant {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #c3e6c3;
}

.level-intermédiaire {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.level-avancé {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.guide-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.guide-books-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.read-more:hover {
    background: var(--primary-dark);
    color: white;
}

/* Archive Search Enhancements for Guides */
.archive-search-container .archive-filters-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Responsive Design */
@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guide-details {
        padding: 1rem;
    }
    
    .guide-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .guide-image {
        height: 120px;
    }
    
    .guide-title {
        font-size: 1.1rem;
    }
}
