/* ═══════════════════════════════════════
   Visioco — Front-end public
   ═══════════════════════════════════════ */

/* ─── Reset scope ─── */
.visioco-professionals *,
.visioco-pro-detail * {
    box-sizing: border-box;
}

/* ─── Search bar ─── */
.visioco-search-bar {
    margin-bottom: 24px;
}

.visioco-search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.visioco-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ─── Grid ─── */
.visioco-pros-grid {
    display: grid;
    gap: 24px;
}

.visioco-cols-2 { grid-template-columns: repeat(2, 1fr); }
.visioco-cols-3 { grid-template-columns: repeat(3, 1fr); }
.visioco-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
    .visioco-cols-3,
    .visioco-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .visioco-cols-2,
    .visioco-cols-3,
    .visioco-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ─── Card (full) ─── */
.visioco-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
}

.visioco-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

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

.visioco-card-avatar {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
}

.visioco-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visioco-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    text-transform: uppercase;
}

/* Status dot */
.visioco-status-dot {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.visioco-online {
    background: #22c55e;
}

.visioco-offline {
    background: #d1d5db;
}

/* Card body */
.visioco-card-body {
    padding: 16px;
}

.visioco-card-name {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #111827;
}

.visioco-card-subtype {
    font-size: 13px;
    color: #6366f1;
    margin: 0 0 6px;
    font-weight: 500;
}

.visioco-card-specs {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
}

.visioco-card-desc {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Card footer */
.visioco-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visioco-card-prices {
    font-size: 12px;
    color: #6b7280;
}

.visioco-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
}

/* ─── Card compact ─── */
.visioco-card-compact {
    border-radius: 8px;
}

.visioco-card-compact-layout {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
}

.visioco-card-avatar-sm {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    aspect-ratio: auto;
    border-radius: 50%;
    overflow: hidden;
}

.visioco-card-avatar-sm .visioco-card-img-placeholder {
    font-size: 22px;
}

.visioco-card-avatar-sm .visioco-status-dot {
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
}

.visioco-card-compact .visioco-card-body {
    padding: 0;
    flex: 1;
}

.visioco-card-compact .visioco-card-name {
    font-size: 15px;
}

.visioco-card-compact .visioco-card-cta {
    font-size: 18px;
    color: #9ca3af;
}

/* ─── Card minimal ─── */
.visioco-card-minimal {
    border-radius: 8px;
}

.visioco-card-minimal-layout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

.visioco-card-img-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.visioco-card-img-placeholder-mini {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 50%;
}

.visioco-card-minimal .visioco-card-name {
    font-size: 14px;
    flex: 1;
}

.visioco-card-minimal .visioco-status-dot {
    position: static;
    border: none;
    width: 8px;
    height: 8px;
}

/* ─── Detail page ─── */
.visioco-pro-detail {
    max-width: 800px;
    margin: 0 auto;
}

.visioco-pro-detail-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.visioco-pro-detail-avatar {
    position: relative;
    flex-shrink: 0;
}

.visioco-detail-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.visioco-detail-img-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    text-transform: uppercase;
}

.visioco-pro-detail-avatar .visioco-status-dot {
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-width: 3px;
}

.visioco-pro-detail-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111827;
}

.visioco-pro-detail-subtype {
    font-size: 15px;
    color: #6366f1;
    font-weight: 500;
    margin: 0 0 8px;
}

.visioco-pro-detail-status {
    margin: 0 0 12px;
}

.visioco-badge-online {
    display: inline-block;
    padding: 3px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.visioco-badge-offline {
    display: inline-block;
    padding: 3px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.visioco-pro-detail-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.visioco-spec-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Prices */
.visioco-pro-detail-prices {
    margin-bottom: 28px;
}

.visioco-pro-detail-prices h3,
.visioco-pro-detail-description h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #111827;
}

.visioco-prices-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.visioco-price-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.visioco-price-icon {
    font-size: 20px;
}

.visioco-price-label {
    font-size: 14px;
    color: #6b7280;
}

.visioco-price-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* Description */
.visioco-pro-detail-description {
    margin-bottom: 28px;
}

.visioco-description-text {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* Meta */
.visioco-pro-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 14px;
    color: #4b5563;
}

.visioco-meta-item strong {
    color: #111827;
}

/* Empty state */
.visioco-empty {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    padding: 40px 20px;
}

/* ─── Responsive detail ─── */
@media (max-width: 600px) {
    .visioco-pro-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .visioco-pro-detail-specs {
        justify-content: center;
    }

    .visioco-prices-grid {
        flex-direction: column;
    }

    .visioco-pro-detail-name {
        font-size: 22px;
    }
}

/* ─── Hidden (search) ─── */
.visioco-card.visioco-hidden {
    display: none;
}

/* ═══════════════════════════════════════
   Reviews
   ═══════════════════════════════════════ */

.visioco-reviews-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #111827;
}

.visioco-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visioco-review-item {
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.visioco-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.visioco-review-stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
}

.visioco-review-date {
    font-size: 13px;
    color: #9ca3af;
}

.visioco-review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 10px;
}

.visioco-review-footer {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.visioco-review-author {
    font-weight: 600;
    color: #374151;
}

.visioco-review-pro {
    font-style: italic;
}
