/* WorkProof Gallery — Public Styles
   All classes namespaced under .workproof- to avoid theme conflicts */

.workproof-gallery-root *,
.workproof-gallery-root *::before,
.workproof-gallery-root *::after {
    box-sizing: border-box;
}

.workproof-gallery-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1d2327;
    line-height: 1.5;
}

/* Loading state */
.workproof-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px;
    color: #646970;
}
.workproof-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #1B5896;
    border-radius: 50%;
    animation: workproof-spin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes workproof-spin { to { transform: rotate(360deg); } }

/* Filter bar */
.workproof-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
}
.workproof-filter-btn {
    padding: 6px 16px;
    border: 1px solid #dcdcde;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #646970;
    transition: all 0.15s;
}
.workproof-filter-btn:hover,
.workproof-filter-btn.active {
    background: #1B5896;
    border-color: #1B5896;
    color: #fff;
}
.workproof-search {
    margin-left: auto;
}
.workproof-search input {
    padding: 6px 14px;
    border: 1px solid #dcdcde;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    width: 200px;
    transition: border-color 0.15s;
}
.workproof-search input:focus { border-color: #1B5896; }

/* Gallery grid */
.workproof-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Project card */
.workproof-project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.workproof-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.workproof-card-thumb {
    aspect-ratio: 16/9;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}
.workproof-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.workproof-project-card:hover .workproof-card-thumb img {
    transform: scale(1.04);
}
.workproof-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 13px;
}
.workproof-card-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1B5896;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}
.workproof-card-body { padding: 18px; }
.workproof-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    color: #1d2327;
}
.workproof-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #646970;
}
.workproof-card-meta-item { display: flex; align-items: center; gap: 4px; }

/* Project detail page */
.workproof-detail-root { max-width: 900px; margin: 0 auto; }

/* Carousel */
.workproof-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 32px;
    aspect-ratio: 16/9;
}
.workproof-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}
.workproof-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}
.workproof-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.workproof-carousel-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.workproof-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 2;
}
.workproof-carousel-btn:hover { background: rgba(0,0,0,0.8); }
.workproof-carousel-prev { left: 12px; }
.workproof-carousel-next { right: 12px; }
.workproof-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.workproof-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.15s;
}
.workproof-carousel-dot.active { background: #fff; }

/* Project detail info */
.workproof-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
}
.workproof-detail-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    background: #f6f7f7;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
}
.workproof-spec { display: flex; flex-direction: column; gap: 2px; }
.workproof-spec-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #646970; font-weight: 600; }
.workproof-spec-value { font-size: 15px; font-weight: 500; color: #1d2327; }

.workproof-detail-description {
    font-size: 16px;
    line-height: 1.7;
    color: #3c434a;
    margin-bottom: 32px;
}
.workproof-detail-description p { margin: 0 0 1em; }

/* Enquiry CTA */
.workproof-enquiry-cta {
    background: linear-gradient(135deg, #1B5896, #154a7a);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 40px;
}
.workproof-enquiry-cta h3 { margin: 0 0 8px; font-size: 20px; }
.workproof-enquiry-cta p  { margin: 0 0 20px; opacity: 0.9; }
.workproof-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #1B5896;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.15s;
}
.workproof-cta-btn:hover { opacity: 0.9; color: #1B5896; }

/* Related projects */
.workproof-related h3 { font-size: 20px; margin-bottom: 16px; }
.workproof-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Back link */
.workproof-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #646970;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.15s;
}
.workproof-back-link:hover { color: #1B5896; }

/* Error & empty states */
.workproof-error, .workproof-empty {
    text-align: center;
    padding: 48px 20px;
    color: #646970;
}
.workproof-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .workproof-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    .workproof-detail-title { font-size: 22px; }
    .workproof-detail-specs { grid-template-columns: 1fr 1fr; }
    .workproof-filter-bar   { gap: 6px; }
    .workproof-search input { width: 140px; }
}
