/**
 * Single Project (Case Study) Styles
 * Extends single-post.css with project-specific styling
 *
 * @package AC Valve Alliance
 */

/* Hero Category Badge */
.acv-sp-hero-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.acv-sp-hero-meta-line i {
    margin-right: 8px;
    opacity: 0.8;
}

/* Project Details Card */
.acv-project-details-card .acv-sp-author-content {
    padding: 0;
}

.acv-project-details-content {
    display: flex;
    flex-direction: column;
}

.acv-project-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.acv-project-detail-row:last-child {
    border-bottom: none;
}

.acv-project-detail-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.acv-project-detail-value {
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

/* Project Highlights */
.acv-project-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acv-project-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #374151;
}

.acv-project-highlights-list li:last-child {
    border-bottom: none;
}

.acv-project-highlights-list li i {
    color: #1cc5d4;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Manufacturers Card */
.acv-project-manufacturers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.acv-project-manufacturer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1 1 calc(50% - 6px);
    min-width: 80px;
}

.acv-project-manufacturer-item:hover {
    border-color: #1cc5d4;
    background: #f0fdfa;
}

.acv-project-manufacturer-item img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.acv-project-manufacturer-item span {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 500;
    text-align: center;
}

/* Project Section Titles */
.acv-project-section-title {
    font-size: 1.4rem;
    font-weight: 300;
    color: #0d4f5c;
    margin: 40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

/* Image Gallery */
.acv-project-gallery {
    margin-top: 40px;
}

.acv-project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.acv-project-gallery-item {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}

.acv-project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.acv-project-gallery-item:hover img {
    transform: scale(1.05);
}

/* Related Products/Services Grid - Uses Related Projects card styling */
.acv-project-related-section {
    margin-top: 40px;
}

.acv-project-related-section .acv-sp-related-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Product cards need contain styling instead of cover */
.acv-project-related-section .acv-sp-related-card-image {
    background-color: #f5f5f5;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acv-project-related-section .acv-sp-related-card-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 295px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.acv-project-related-section .acv-sp-related-card-link:hover .acv-sp-related-card-image {
    background-color: #00BAC6;
}

.acv-project-related-section .acv-sp-related-card-link:hover .acv-sp-related-card-image img {
    filter: brightness(1.1);
    mix-blend-mode: normal;
}

/* Responsive */
@media (max-width: 1024px) {
    .acv-project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .acv-project-related-section .acv-sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .acv-project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .acv-project-related-section .acv-sp-related-grid {
        grid-template-columns: 1fr;
    }
    
    .acv-project-detail-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .acv-project-detail-value {
        text-align: left;
    }
}
