/* Vendor Profile Page Styles - Glassmorphie Design */

#vendor-profile-page {
    padding: 0;
}

/* Vendor Profile Card */
.vendor-profile-card {
    background: transparent;
    border: none;
    padding: 0 4px 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.vendor-logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(10, 132, 255, 0.3);
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.2);
}

.vendor-logo-placeholder {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A84FF 0%, #64D2FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

.vendor-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.vendor-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vendor-country {
    font-size: 14px;
    color: var(--text-secondary);
}

.vendor-social-icons {
    display: flex;
    gap: 6px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #0A84FF;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:active {
    transform: scale(0.9);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

/* Tabs Navigation - Single bar with 2 sections */
.vendor-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 0 8px 8px 8px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.vendor-tab {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    position: relative;
}

.vendor-tab:active {
    transform: scale(0.96);
}

.vendor-tab.active {
    background: linear-gradient(
        135deg,
        rgba(10, 132, 255, 0.9) 0%,
        rgba(10, 132, 255, 0.8) 100%
    );
    color: white;
    box-shadow:
        0 2px 8px rgba(10, 132, 255, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Tab Content - RENAMED to avoid conflict with referral.css */
.vendor-tab-content {
    padding: 0 8px 8px 8px;
    display: block !important;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    margin: 0;
    font-size: 13px;
}

/* Menu Tab - Products List (horizontal cards like market list view) */
.vendor-products-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Override market.css styles for vendor profile product cards */
.vendor-products-list .market-product-card-horizontal {
    height: 80px;
}

.vendor-products-list .product-image-horizontal {
    width: 80px;
    height: 80px;
}

.vendor-products-list .product-info-horizontal {
    padding: 8px;
}

.vendor-products-list .product-name-horizontal {
    font-size: 13px;
}

.vendor-products-list .product-farm-horizontal {
    font-size: 10px;
}

.vendor-products-list .product-footer-horizontal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.vendor-products-list .product-type-badge-horizontal,
.vendor-products-list .product-category-badge-horizontal {
    font-size: 8px;
    padding: 2px 5px;
}

/* Liens Tab */
.vendor-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vendor-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(
        135deg,
        var(--glass-medium) 0%,
        var(--glass-light) 100%
    );
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    -webkit-tap-highlight-color: transparent;
}

.vendor-link:active {
    transform: scale(0.98);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: var(--glass-border-strong);
}

.vendor-link svg:first-child {
    color: #0A84FF;
    flex-shrink: 0;
}

.vendor-link span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.vendor-link .arrow {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.vendor-other-links {
    padding: 16px;
    background: linear-gradient(
        135deg,
        var(--glass-medium) 0%,
        var(--glass-light) 100%
    );
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.vendor-other-links p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* ===== Reviews Tab ===== */

.reviews-summary {
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.avg-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stars-display {
    display: flex;
    gap: 4px;
    font-size: 20px;
}

.stars-display .star {
    transition: opacity 0.2s ease;
}

.stars-display .star.filled {
    color: #FFD700;
    opacity: 1;
}

.stars-display .star.half {
    color: #FFD700;
    opacity: 0.5;
}

.stars-display .star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.review-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.review-card:active {
    transform: scale(0.99);
    opacity: 0.95;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-rating {
    display: flex;
    gap: 2px;
    font-size: 16px;
}

.review-rating .star.filled {
    color: #FFD700;
}

.review-rating .star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.review-author {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.review-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.review-comment {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}
