/**
 * References Page Styles
 * Grid layout for portfolio/references display
 */

/* ==================== FILTERS ==================== */
.references-filters {
    background: white;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 10;

}

.filter-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.filter-tab {
    padding: 10px 20px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.filter-tab.active {
    background: #000000;
    color: white;
 
}

/* ==================== GRID ==================== */
.references-grid {
    padding: 20px 0 80px;
}

.references-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .references-grid .grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== REFERENCE CARD ==================== */
.reference-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border:1px solid #e5e7eb;
    transition: all 0.3s ease;
    opacity: 1;
}

.reference-card.hidden {
    display: none;
}

.reference-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.reference-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.reference-card .card-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.reference-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.reference-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reference-card:hover .card-overlay {
    opacity: 1;
}

.reference-card .view-project {
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-card .card-content {
    padding: 24px;
}

.reference-card .card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.3;
}

.reference-card .card-company {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reference-card .card-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
}

.reference-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reference-card .card-tags .tag {
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

.references-grid .no-references {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    padding: 120px 0 120px;
    margin-bottom: 0;
    position: relative;
}

.page-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-hero .breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.page-hero .breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
    font-size: 0.9rem;
}

.page-hero .breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    opacity: 0.6;
}

.page-hero .breadcrumb-nav .breadcrumb-item a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.page-hero .breadcrumb-nav .breadcrumb-item a:hover {
    opacity: 1 !important;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Simple Breadcrumb (when hero disabled) */
.breadcrumb-wrapper {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-wrapper .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-wrapper .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-wrapper .breadcrumb-item a:hover {
    color: #667eea;
}

.breadcrumb-wrapper .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 40px;
    }
    
    .page-hero .hero-title {
        font-size: 32px;
    }
    
    .page-hero .hero-subtitle {
        font-size: 16px;
    }
    
    .references-grid {
        padding: 40px 0 60px;
    }
}
