/* 
 * service_card.css — Redesigned to match Vendor Product Cards
 */

:root {
    --svc-doc-accent: #2563eb;
    --svc-lab-accent: #2563eb;
    --svc-transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Container Grid */
.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

/* Base Product Card Style */
.product-card.svc-v2 {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--svc-transition);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card.svc-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

/* Image/Icon Area */
.product-image-area {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.svc-v2--doc .product-image-area { background: #eff6ff; }
.svc-v2--lab .product-image-area { background: #eff6ff; }

.emoji-placeholder {
    font-size: 3.5rem;
    transition: transform 0.4s ease;
}

.product-card.svc-v2:hover .emoji-placeholder {
    transform: scale(1.1) rotate(5deg);
}

.duration-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #475569;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Card Body */
.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vendor-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.svc-mini-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating-row {
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
    margin-top: auto;
}

.reviews {
    color: #94a3b8;
    font-weight: 500;
}

.price-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.add-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

.svc-v2--doc .add-btn { 
    background: var(--svc-doc-accent); 
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.svc-v2--lab .add-btn { 
    background: var(--svc-lab-accent); 
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.add-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.svc-v2--doc .add-btn:hover { background: #1e40af; }
.svc-v2--lab .add-btn:hover { background: #1e40af; }

/* Dropdown Menu (Owner Options) */
.post-options-v2 {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.post-opt-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #475569;
}

.post-dropdown-menu {
    position: absolute;
    top: 38px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid #f1f5f9;
    width: 130px;
    display: none;
    padding: 6px;
}

.post-dropdown-menu.active {
    display: block;
}

.post-dropdown-menu button {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    text-align: left;
}

.post-dropdown-menu button:hover {
    background: #f8fafc;
    color: var(--svc-doc-accent);
}

.post-dropdown-menu button.delete:hover {
    color: #ef4444;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .services-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-image-area {
        height: 140px;
    }
    
    .emoji-placeholder {
        font-size: 2.5rem;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
    
    .add-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 420px) {
    .services-modern-grid {
        grid-template-columns: 1fr;
    }
}
