yak-service-card {
    --primary: #2563eb;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --primary-hover: #1d4ed8;
    --secondary: #f59e0b;
    --secondary-hover: #d97706;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --surface: #f9fafb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
}

/* @media (prefers-color-scheme: dark) {
    .yak-service-card {
        --bg-body: #0f172a;
        --bg-card: #1e293b;
        --surface: #334155;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --text-light: #64748b;
        --border: #334155;
        --border-light: #1e293b;
        --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
        --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.3);

        .skill-pill {
            background-color: #1f2937;
            border-color: #374151;
        }
    }
} */

.service-card-skeleton {
    border-radius: 1rem;
    height: fit-content;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    
    .card-header {
        display: flex;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }
    
    .service-icon-skeleton {
        width: 4rem;
        height: 4rem;
        border-radius: 1rem;
    }
    
    .name-header {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        flex: 1 1 auto;
    }
    
    .name-skeleton, .category-skeleton {
        height: 1.25rem;
        border-radius: 12px;
        width: 60%;
    }
    
    .category-skeleton {
        width: 25%;
    }
    
    .body {
        margin-bottom: 1rem;
        .body-skeleton {
            width: 50%;
            height: 3.5rem;
            border-radius: 12px;
        }
    }
    
    .footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        .host-skeleton {
            height: 40px;
            width: 20%;
            border-radius: 12px;
        }
        
        .connect-skeleton {
            border-radius: 0.4rem;
            height: 35px;
            width: 15%;
        }
    }
    
}

yak-service-card:defined {

    background-color: var(--bg-card);
    border: none;
    border-radius: var(--radius-2xl);
    padding: 0;
    position: relative;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: fit-content;


    &:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-4px);
    }

    .card-top-section {
        padding: 1.5rem 1.5rem 0.5rem 1.5rem;
        flex: 1;
    }

    .card-menu-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        color: var(--text-light);
        cursor: pointer;
        padding: 0.4rem;
        border-radius: 50%;
        transition: all 0.2s;
        z-index: 10;
        aspect-ratio: 1/1;
    }

    .card-menu-btn:hover {
        background-color: var(--surface);
        color: var(--text-main);
    }

    .service-action-dropdown-item .service-action-dropdown-button {
        border: none;
        display: flex;
        align-items: center;
        height: 100%;
        width: 100%;
        font-size: 14px;
        padding: 0.4rem 1rem;
        gap: 5px;
        background-color: #fff;
    }

    .card-header {
        display: flex;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
        align-items: flex-start;
    }

    .card-avatar {
        width: 4rem;
        height: 4rem;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        font-weight: 700;
        flex-shrink: 0;
        overflow: hidden;
    }

    .card-avatar .card-icon {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .card-title-group {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding-top: 0.25rem;
    }

    .card-title-group h3 {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.3;
        color: var(--text-main);
        letter-spacing: -0.01em;
    }

    .hosted-by-section {
        display: flex;
        align-items: center;
        gap: 0.35rem;

        .hosted-by-label {
            font-size: 12px;
            color: #0006;
        }
    }

    .category-badge {
        display: inline-flex;
        align-items: center;
        font-size: 0.8125rem;
        font-weight: 500;
        /* color: var(--text-muted); */
    }

    .category-badge .material-symbols-outlined {
        font-size: 1rem;
        margin-right: 0.35rem;
        /* color: var(--text-light); */
    }

    .card-body {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0;

        .body-section {
            .company-section {
                display: flex;
                flex-direction: column;
                gap: 2px;
                width: 220px;
                padding: 0;
            }

            .company-section .company-section-header-text {
                font-size: 12px;
                color: #0006;
            }

            .company-section .company-card {
                display: flex;
                align-items: center;
                text-decoration: none;
                color: var(--text-muted);
                gap: 0.4rem;
            }

            .company-card .company-image-container>img {
                border-radius: 50%;
                width: 36px;
                aspect-ratio: 1/1;
                object-fit: cover;
            }

            .company-card .company-name-container {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }

            .company-card .company-name-container span {
                line-height: initial;
            }

            .company-card .company-name-text {
                font-size: 14px;
            }

            .company-card .company-type-text {
                text-transform: capitalize;
                font-size: 12px;
                line-height: 14px;
                color: #0006;
            }

        }
    }

    .skills-section {
        margin-bottom: 1rem;
    }

    .skills-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-light);
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }

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

    .skill-pill {
        color: var(--text-main);
        font-weight: 500;
    }

    .card-grid-footer {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        border-top: 1px solid var(--border-light);
        background-color: var(--surface);
    }

    .footer-cell {
        padding: 0.6rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid var(--border-light);
    }

    .footer-cell:last-child {
        border-right: none;
    }

    .cell-label {
        font-size: 0.75rem;
        color: var(--text-light);
        margin-bottom: 0.25rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .cell-label .material-icons-outlined {
        font-size: 0.875rem;
    }

    .cell-value {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-main);
    }

    .price-value {
        color: var(--text-main);
        font-family: 'Inter', sans-serif;
    }

    .card-meta-footer {
        padding: 0.75rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-light);
        background-color: var(--bg-card);
    }

    .post-date {
        font-size: 0.75rem;
        color: var(--text-muted);
    }

    .action-links {
        position: relative;
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .action-link {
        background: none;
        border: none;
        padding: 0;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--primary);
        cursor: pointer;
        transition: color 0.2s;
    }

    .action-link:hover {
        color: var(--primary-hover);
    }

    .service-connect-button {
        display: flex;
        align-items: center;
        background-color: var(--primary);
        color: var(--text-white);
        border-radius: 0.4rem;
        padding: 0.3rem 0.65rem;
    }

    .service-connect-button:hover {
        color: var(--text-white);
    }

    .service-connect-button .yak-material-icon {
        transition: transform 0.3s ease;
    }

    .service-connect-button:hover .yak-material-icon {
        transform: translateX(4px);
    }
}


.service-card-public-share-dropdown-content {
    .yak-dropdown-item {
        .share-link {
            width: 100%;
        }
        img {
            height: 28px;
            width: 28px;
            transition: 0.2s linear all;
        }

        &:hover img {
            transform: scale(1.2);
        }
    }
}


@media screen and (max-width: 600px) {

    .service-card-skeleton {
        border-radius: 0;
    }

    yak-service-card:defined {

        &:hover {
            transform: translateY(-2px);
        }

        .card-top-section {
            padding: 1rem 1rem 0.4rem 1rem;
            flex: 1;
        }

        .card-menu-btn {
            top: 1rem;
            right: 0.5rem;
            padding: 0.2rem;
        }

        .card-menu-btn:hover {
            background-color: var(--surface);
            color: var(--text-main);
        }

        .service-action-dropdown-item .service-action-dropdown-button {
            border: none;
            display: flex;
            align-items: center;
            height: 100%;
            width: 100%;
            font-size: 14px;
            padding: 0.4rem 1rem;
            gap: 5px;
            background-color: #fff;
        }

        .card-header {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            align-items: flex-start;
        }

        .card-avatar {
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 0.6rem;
            font-size: 1.25rem;
            font-weight: 700;
            flex-shrink: 0;
            overflow: hidden;
        }

        .card-avatar .card-icon {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }

        .card-title-group {
            padding-top: 0rem;
        }

        .card-title-group h3 {
            font-size: 1rem;
            font-weight: 700;
            margin: 0 0 0.35rem 0;
            line-height: 1.3;
            color: var(--text-main);
            letter-spacing: -0.01em;
        }

        .category-badge {
            display: inline-flex;
            align-items: center;
            font-size: 0.7125rem;
            font-weight: 500;
        }

        .category-badge .material-symbols-outlined {
            font-size: 0.8rem;
            margin-right: 0.35rem;
        }

        .card-body {
            margin-bottom: 0;
            flex-direction: column;
            gap: 10px;

            .body-section {
                width: 100%;
                
                .company-section {
                    background-color: var(--yak-secondary-color);
                    border-radius: 0.5rem;
                    padding: 0.4rem 0.65rem;
                    width: 100%;
                }
            }  
        }

        .skills-section {
            margin-bottom: 0.6rem;
        }

        .skills-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-light);
            font-weight: 600;
            margin-bottom: 0.3rem;
            display: block;
        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .skill-pill {
            color: var(--text-main);
            font-weight: 500;
        }

        .card-grid-footer {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            border-top: 1px solid var(--border-light);
            background-color: var(--surface);
        }

        .footer-cell {
            padding: 0.6rem 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-right: 1px solid var(--border-light);
        }

        .footer-cell:last-child {
            border-right: none;
        }

        .cell-label {
            font-size: 0.75rem;
            color: var(--text-light);
            margin-bottom: 0.25rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .cell-label .material-icons-outlined {
            font-size: 0.875rem;
        }

        .cell-value {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-main);
        }

        .price-value {
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
        }

        .card-meta-footer {
            padding: 0.6rem 1.2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--border-light);
            background-color: var(--bg-card);
        }

        .post-date {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .action-links {
            display: flex;
            gap: 1rem;
        }

        .action-link {
            background: none;
            border: none;
            padding: 0;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--primary);
            cursor: pointer;
            transition: color 0.2s;
        }

        .action-link:hover {
            color: var(--primary-hover);
        }
    }

}