/**
 * Lens Category Archive Styling
 * Version: 2.3.0
 * Last Updated: October 10, 2025
 * 
 * Handles styling for all lens category archive pages:
 * - Prime, Zoom, Macro, Telephoto, Wide-Angle, Specialty
 */

/* ========================================
   Hero Section
======================================== */
.lens-archive-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.category-icon {
    font-size: 1.2rem;
}

.category-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.archive-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   Category Specs
======================================== */
.category-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.spec-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.spec-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-weight: 700;
    font-size: 1rem;
}

/* ========================================
   Hero Actions
======================================== */
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   Products Section
======================================== */
.lens-products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* ========================================
   Products Grid
======================================== */
.lens-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.lens-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lens-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Product Image
======================================== */
.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.lens-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lens-product-card:hover .lens-thumbnail {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.lens-product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: white;
    color: #333;
    transform: scale(1.05);
}

/* ========================================
   Product Content
======================================== */
.product-content {
    padding: 20px;
}

.product-title {
    margin-bottom: 10px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #667eea;
}

.product-excerpt {
    color: #666;
    line-height: 1.5;
    margin: 10px 0;
    font-size: 0.95rem;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
    align-items: center;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.product-aperture, .product-focal {
    background: #f1f3f4;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.product-actions {
    margin-top: 15px;
}

.btn-product-view {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-product-view:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* ========================================
   Pagination
======================================== */
.archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.archive-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    padding: 8px 16px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #667eea;
    color: white;
}

/* ========================================
   No Content State
======================================== */
.no-lenses-found {
    text-align: center;
    padding: 60px 20px;
}

.no-content-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-lenses-found h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.no-lenses-found p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn-back-categories {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-categories:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* ========================================
   Related Categories
======================================== */
.related-categories {
    padding: 60px 0;
    background: #333;
    color: white;
}

.related-categories h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.related-category-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.related-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.related-title {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-description {
        font-size: 1rem;
    }
    
    .category-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .lens-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .category-specs {
        grid-template-columns: 1fr;
    }
    
    .product-meta {
        gap: 10px;
    }
}
