/* Zero-Click Recovery Framework Resource Grid Styling 
 * Used across all zero-click SEO content pages
 * Created: July 2025
 */

/* Blog post related resources styling */
.related-posts {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0056b3;
}

.related-posts h3 {
    font-size: 1.5rem;
    color: #0056b3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.resource-intro {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.resource-section {
    margin-bottom: 2rem;
}

.resource-section h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.post-grid, .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.related-post img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.related-post h4 {
    font-size: 1rem;
    margin: 1rem;
    line-height: 1.4;
    color: #333;
    border-bottom: none;
}

.related-post .post-meta, 
.related-post .post-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin: 0 1rem 1rem;
}

.related-post .post-tag {
    display: inline-block;
    font-size: 0.75rem;
    background-color: #e9f0f7;
    color: #0056b3;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin: 0 1rem 1rem;
    font-weight: 500;
}

/* Special post types */
.related-post.featured {
    border: 2px solid #0056b3;
}

.related-post.new {
    border: 2px solid #25b779;
}

.related-post.download {
    border: 2px solid #f5a623;
}

.new-badge {
    display: inline-block;
    background-color: #25b779;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

/* Landing page resources section styling */
.resources-wrapper {
    margin: 2rem 0;
}

.resource-category {
    margin-bottom: 3rem;
}

.resource-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    color: #0056b3;
}

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

.resource-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.resource-card.featured {
    border: 2px solid #0056b3;
}

.resource-card.new {
    border: 2px solid #25b779;
}

.resource-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #25b779;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 2;
}

.resource-image {
    height: 180px;
    overflow: hidden;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.resource-card:hover .resource-image img {
    transform: scale(1.05);
}

.resource-content {
    padding: 1.5rem;
}

.resource-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.4;
}

.resource-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.resource-content .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.resource-content .btn-outline {
    border: 2px solid #0056b3;
    color: #0056b3;
    background: transparent;
}

.resource-content .btn-outline:hover {
    background-color: #0056b3;
    color: white;
}

.resource-content .btn-primary {
    background-color: #0056b3;
    color: white;
    border: 2px solid #0056b3;
}

.resource-content .btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .post-grid, .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .post-grid, .related-grid, .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts {
        padding: 1.5rem;
    }
    
    .resource-content {
        padding: 1.25rem;
    }
    
    .resource-image {
        height: 160px;
    }
}
