/* Samples Pages Styling */

.samples-section { 
    padding: 100px 50px; 
    background: #0f1419;
    max-width: 1400px;
    margin: 0 auto;
}

.samples-back-btn { 
    display: inline-block; 
    margin-bottom: 30px; 
    padding: 12px 25px; 
    background: #1a3a5c; 
    color: #c0c0c0; 
    border: 2px solid #4a7ba7;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.samples-back-btn:hover { 
    background: #4a7ba7; 
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 123, 167, 0.5);
}

.samples-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 48px; 
    color: #fff; 
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.samples-description {
    color: #b8c5d6; 
    font-size: 16px; 
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(26, 58, 92, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(74, 123, 167, 0.3);
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(74, 123, 167, 0.5);
    color: #c0c0c0;
    border: 1px solid #4a7ba7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto !important;
}

.filter-btn:hover {
    background: rgba(74, 123, 167, 0.8);
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #4a7ba7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 123, 167, 0.6);
}

.samples-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 40px; 
}

.sample-card { 
    position: relative;
    overflow: visible;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 1;
}

.sample-card.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.sample-card-image-wrapper {
    position: relative;
    overflow: visible;
    border-radius: 6px;
    border: 3px solid rgba(74, 123, 167, 0.3);
    aspect-ratio: 1/1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: #1a2938;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
    height: 400px;
}

.image-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-img:first-child {
    opacity: 1;
}

.carousel-img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 123, 167, 0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    min-width: 40px;
    min-height: 40px;
    pointer-events: auto !important;
}

.carousel-btn:hover {
    background: rgba(74, 123, 167, 0.9);
    box-shadow: 0 0 10px rgba(74, 123, 167, 0.6);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.sample-name {
    margin-top: 15px;
    padding: 12px;
    background: rgba(74, 123, 167, 0.15);
    border: 2px solid rgba(74, 123, 167, 0.3);
    border-radius: 4px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #c0c0c0;
    text-transform: capitalize;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .samples-section { 
        padding: 80px 40px; 
    }
    
    .samples-grid { 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        gap: 25px;
    }
    
    .samples-title { 
        font-size: 40px; 
    }
}

@media (max-width: 768px) {
    .samples-section { 
        padding: 60px 30px; 
    }
    
    .samples-title { 
        font-size: 32px; 
    }
    
    .samples-description {
        font-size: 14px;
    }
    
    .filter-section {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px;
    }
    
    .samples-grid { 
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
        gap: 20px;
    }
    
    .sample-card {
        padding: 15px;
    }
    
    .sample-card-image-wrapper {
        height: 300px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .sample-name {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 640px) {
    .samples-section { 
        padding: 50px 20px; 
    }
    
    .samples-title { 
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .samples-description {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .filter-section {
        gap: 6px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 7px 12px;
        font-size: 11px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 8px;
    }
    
    .search-suggestions {
        max-height: 200px;
        font-size: 12px;
    }
    
    .suggestion-item {
        padding: 8px;
    }
    
    .samples-grid { 
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .sample-card {
        padding: 10px;
    }
    
    .sample-card-image-wrapper {
        height: 250px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .sample-name {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .samples-back-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .samples-section { 
        padding: 40px 15px; 
    }
    
    .samples-back-btn {
        padding: 8px 15px;
        font-size: 11px;
        margin-bottom: 20px;
    }
    
    .samples-title { 
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .samples-description {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .filter-section {
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .search-input {
        font-size: 12px;
        padding: 8px;
        width: 100%;
    }
    
    .search-suggestions {
        max-height: 150px;
        font-size: 11px;
    }
    
    .suggestion-item {
        padding: 6px;
    }
    
    .section-label {
        font-size: 9px;
    }
    
    .samples-grid { 
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sample-card {
        padding: 8px;
    }
    
    .sample-card-image-wrapper {
        height: 200px;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .sample-name {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

@media (max-width: 360px) {
    .samples-section { 
        padding: 30px 10px; 
    }
    
    .samples-title { 
        font-size: 18px;
    }
    
    .samples-description {
        font-size: 11px;
    }
    
    .filter-btn {
        padding: 5px 8px;
        font-size: 9px;
    }
    
    .samples-grid { 
        gap: 10px;
    }
    
    .sample-card-image-wrapper {
        height: 180px;
    }
    
    .sample-name {
        font-size: 10px;
    }
}
