/* Expert Profile Page Styles - Light Theme */

:root {
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;

    --amber-500: #f59e0b;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --green-500: #22c55e;
    --blue-400: #60a5fa;
    --blue-600: #2563eb;

    /* Light Theme Mappings */
    --bg-color: #ffffff;
    --text-color: #18181b;
    /* zinc-900 */
    --card-bg: #ffffff;
    --card-border: #e4e4e7;
    /* zinc-200 */
    --muted-text: #71717a;
    /* zinc-500 */
    --heading-color: #18181b;
    /* zinc-900 */
    --section-title-color: #18181b;
}

.pi-expert-page {
    background-color: var(--zinc-50);
    /* Light grey background for page */
    color: var(--text-color);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Main Container */
.pi-container {
    max-width: 64rem;
    /* max-w-5xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
}

/* Hero Banner */
.pi-expert-hero {
    background-color: white;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    /* rounded-lg */
    padding: 1.5rem;
    /* p-6 */
    margin-bottom: 1.5rem;
    /* mb-6 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.pi-expert-hero h1 {
    font-size: 1.5rem;
    /* text-2xl */
    line-height: 2rem;
    font-weight: 700;
    /* font-bold */
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    /* mb-2 */
}

.pi-expert-hero p {
    color: var(--muted-text);
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.25rem;
    max-width: 48rem;
    /* max-w-3xl */
}

@media (min-width: 768px) {
    .pi-expert-hero p {
        font-size: 1rem;
        /* md:text-base */
        line-height: 1.5rem;
    }
}

/* Expert Card - Matched to React Component */
.pi-expert-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* gap-6 */
    background-color: #eff6ff;
    /* blue-50 */
    border: 1px solid #60a5fa;
    /* blue-400 */
    /* border-gray-200 */
    border-radius: 0.5rem;
    /* rounded-lg */
    padding: 1.5rem;
    /* p-6 */
    margin-bottom: 1.5rem;
    /* mb-6 */
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
    /* shadow-md */
}

@media (min-width: 768px) {
    .pi-expert-card {
        flex-direction: row;
    }
}

.pi-card-photo {
    flex-shrink: 0;
}

.pi-card-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.5rem;
    /* rounded-lg */
    border: 2px solid #93c5fd;
    /* blue-300 */
    /* border-2 border-gray-100 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
}

@media (min-width: 768px) {
    .pi-card-photo img {
        width: 220px;
    }
}

.pi-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pi-expert-name {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    /* font-bold */
    color: #1e3a8a;
    /* blue-900 */
    /* text-gray-900 */
    margin-bottom: 0.5rem;
    /* mb-2 */
    line-height: 2rem;
}

.pi-card-short-desc {
    color: #1e40af;
    /* blue-800 */
    /* text-gray-700 */
    font-weight: 500;
    /* font-medium */
    margin-bottom: 1rem;
    /* mb-4 */
    font-size: 1rem;
}

.pi-card-category {
    margin-bottom: 1rem;
    /* mb-4 */
    font-size: 0.875rem;
    /* text-sm */
    display: flex;
    align-items: center;
}

.pi-cat-label {
    color: #2563eb;
    /* blue-600 */
    /* text-gray-500 */
    font-weight: 500;
    /* font-medium */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* tracking-wider */
    font-size: 0.75rem;
    /* text-xs */
    margin-right: 0.5rem;
    /* mr-2 */
}

.pi-cat-value {
    background-color: #dbeafe;
    /* blue-100 */
    /* bg-gray-100 */
    color: #1e40af;
    /* blue-800 */
    /* text-gray-800 */
    padding: 0.25rem 0.5rem;
    /* px-2 py-1 */
    border-radius: 0.25rem;
    /* rounded */
    border: 1px solid #60a5fa;
    /* blue-400 */
    /* border-gray-200 */
    font-size: 0.875rem;
}

/* Languages Section */
.pi-card-languages {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.pi-lang-label {
    color: #10b981;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.5rem;
}

.pi-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pi-lang-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #166534;
}

.pi-lang-flag {
    font-size: 1.125rem;
    line-height: 1;
}

.pi-lang-name {
    color: #166534;
}

.pi-card-about {
    color: var(--zinc-600);
    /* text-gray-600 */
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.625;
    /* leading-relaxed */
    border-top: 1px solid #93c5fd;
    /* blue-300 */
    /* border-t border-gray-100 */
    padding-top: 1rem;
    /* pt-4 */
    margin-top: auto;
    /* mt-auto */
    margin-bottom: 1rem;
}

.pi-about-title {
    display: block;
    color: #2563eb;
    /* blue-600 */
    /* text-gray-500 */
    font-weight: 700;
    /* font-bold */
    font-size: 0.75rem;
    /* text-xs */
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    /* mb-2 */
}

/* Inline Meta Data - Styled to match ExpertMeta.tsx */
.pi-expert-meta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    /* gap-y-3 gap-x-6 */
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: 0.875rem;
    /* text-sm */
}

.pi-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    font-size: 0.875rem;
}

.pi-meta-nick {
    color: var(--zinc-500);
    /* text-gray-500 */
}

.pi-meta-nick span {
    color: var(--zinc-900);
    /* text-gray-900 */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    /* font-mono */
    font-weight: 500;
    /* font-medium */
}

.pi-meta-verified {
    color: var(--green-500);
    /* text-green-600 (using green-500 close match) */
    font-weight: 500;
    /* font-medium */
}

.pi-meta-unverified {
    color: var(--zinc-500);
    /* text-gray-500 */
}

.pi-meta-registered {
    color: var(--zinc-500);
    /* text-gray-500 */
}

.pi-meta-registered span {
    color: var(--zinc-900);
    /* text-gray-900 */
    font-weight: 500;
    /* font-medium */
}

.pi-premium-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    /* gap-1 */
    padding: 0.25rem 0.75rem;
    /* px-3 py-1 */
    border-radius: 9999px;
    /* rounded-full */
    background-color: #fffbeb;
    /* bg-amber-50 */
    border: 1px solid #fcd34d;
    /* border-amber-200 (using amber-300 close match) */
    color: var(--amber-500);
    /* text-amber-600 */
    font-weight: 600;
    /* font-semibold */
    font-size: 0.75rem;
    /* text-xs */
    text-transform: uppercase;
    letter-spacing: 0.025em;
    /* tracking-wide */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
}

.pi-card-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    /* gap-4 */
    border-top: 1px solid #93c5fd;
    /* blue-300 */
    /* border-gray-100 */
    padding-top: 1rem;
    /* pt-4 */
}

@media (min-width: 768px) {
    .pi-card-actions {
        width: 220px;
        /* w-[220px] */
        flex-direction: column;
        align-items: stretch;
        /* items-end in React, but stretch for buttons */
        border-top: none;
        border-left: 1px solid #93c5fd;
        /* blue-300 */
        /* border-l border-gray-100 */
        padding-top: 0;
        padding-left: 1.5rem;
        /* pl-6 */
    }
}

.pi-btn-settings,
.pi-btn-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    padding: 0.5rem 1rem;
    /* px-4 py-2 */
    border-radius: 0.5rem;
    /* rounded-lg */
    border: 1px solid #60a5fa;
    /* blue-400 */
    /* border-gray-300 */
    background: white;
    color: #2563eb;
    /* blue-600 */
    /* text-gray-700 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .pi-btn-settings {
        width: auto;
    }
}

.pi-btn-settings:hover,
.pi-btn-share:hover {
    border-color: #3b82f6;
    /* blue-500 */
    /* hover:border-gray-400 */
    background-color: #eff6ff;
    /* blue-50 */
    /* hover:bg-gray-50 */
    color: #1e40af;
    /* blue-800 */
}

.pi-rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    /* React component has it inside flex col items-end */
}

@media (min-width: 768px) {
    .pi-rating-container {
        align-items: flex-end;
        margin-bottom: 1.5rem;
        order: -1;
        /* Move rating to top on desktop */
    }
}

.pi-stars {
    display: flex;
    gap: 0.25rem;
    /* gap-1 */
    margin-bottom: 0.25rem;
    /* mb-1 */
}

.pi-star {
    color: var(--zinc-300);
    /* text-gray-300 */
}

.pi-star.filled {
    color: var(--yellow-400);
    /* text-yellow-400 */
    fill: var(--yellow-400);
    /* fill-yellow-400 */
}

.pi-review-count {
    font-size: 0.875rem;
    /* text-sm */
    color: var(--zinc-500);
    /* text-gray-500 */
    text-decoration: underline;
    transition: color 0.2s;
}

.pi-review-count:hover {
    color: var(--zinc-900);
    /* hover:text-gray-900 */
}

/* Meta Row - Hidden or repurposed since we moved it inline */
.pi-expert-meta {
    display: none;
}

/* Dokan Share Modal Styling */
.iziModal-content {
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.dokan-share-wrap.dokan-izimodal-wraper {
    background-color: white;
    padding: 2rem !important;
    text-align: center;
    font-family: inherit;
}

.dokan-izimodal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.dokan-izimodal-close-btn .icon-close {
    background: none;
    border: none;
    color: var(--zinc-400);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.2s;
    padding: 0.5rem;
}

.dokan-izimodal-close-btn .icon-close:hover {
    color: var(--zinc-900);
}

.dokan-share-wrap .dokan-share {
    margin-top: 1.5rem;
}

.jssocials-shares {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.jssocials-share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: var(--zinc-100);
    color: var(--zinc-600);
    font-size: 1.5rem;
    transition: all 0.2s;
    border: 1px solid var(--zinc-200);
}

.jssocials-share-link:hover {
    background-color: var(--zinc-800);
    color: white;
    border-color: var(--zinc-800);
    transform: translateY(-2px);
}

/* Specific Brand Colors on Hover */
.jssocials-share-facebook .jssocials-share-link:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

.jssocials-share-twitter .jssocials-share-link:hover {
    background-color: #000000;
    border-color: #000000;
}

/* X is black */
.jssocials-share-linkedin .jssocials-share-link:hover {
    background-color: #0a66c2;
    border-color: #0a66c2;
}

.jssocials-share-pinterest .jssocials-share-link:hover {
    background-color: #bd081c;
    border-color: #bd081c;
}

.jssocials-share-email .jssocials-share-link:hover {
    background-color: var(--zinc-600);
    border-color: var(--zinc-600);
}

/* Divider */
.pi-divider {
    height: 1px;
    background-color: var(--zinc-200);
    margin: 2rem 0;
}

/* Products Grid */
.pi-section-title {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    color: var(--section-title-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pi-section-icon {
    color: #2563eb;
    /* blue-600 */
}

.pi-empty-message {
    color: #1e40af;
    /* blue-800 */
}

.pi-review-username {
    color: #1e40af;
    /* blue-800 */
    font-family: monospace;
    font-weight: 400;
    margin-left: 8px;
}

.pi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    /* gap-5 */
}

@media (min-width: 640px) {
    .pi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pi-product-card {
    display: block;
    background-color: white;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.pi-product-card:hover {
    border-color: var(--zinc-300);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.pi-prod-thumb {
    position: relative;
    height: 12rem;
    /* h-48 */
    overflow: hidden;
    background-color: var(--zinc-100);
}

.pi-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pi-product-card:hover .pi-prod-thumb img {
    transform: scale(1.05);
}

.pi-prod-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.pi-prod-badge span {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--zinc-900);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pi-prod-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 140px;
}

.pi-prod-title {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.pi-product-card:hover .pi-prod-title {
    color: var(--blue-600);
}

.pi-prod-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--zinc-100);
    transition: border-color 0.2s;
}

.pi-product-card:hover .pi-prod-footer {
    border-color: var(--zinc-200);
}

.pi-prod-price {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
    color: var(--zinc-900);
}

.pi-prod-arrow {
    color: var(--zinc-400);
    transition: color 0.2s;
}

.pi-product-card:hover .pi-prod-arrow {
    color: var(--blue-600);
}

/* Reviews */
.pi-reviews-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pi-review-item {
    background-color: white;
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 0.5rem;
    transition: border-color 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pi-review-item:hover {
    border-color: var(--zinc-300);
}

.pi-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.pi-review-author {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 1rem;
}

.pi-review-stars {
    display: flex;
    gap: 0.125rem;
}

.pi-review-stars .pi-star {
    width: 14px;
    height: 14px;
}

.pi-review-stars .pi-star.filled {
    color: var(--yellow-400);
    fill: var(--yellow-400);
}

.pi-review-stars .pi-star.empty {
    color: var(--zinc-200);
}

.pi-review-text {
    color: var(--zinc-600);
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
}