/**
 * Component: Single Case
 * Case study detail page
 * 症例詳細ページ
 */

/* Header Section */
:where(.c-single-case-001__header) {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--wp--preset--spacing--3-xl);
    align-items: start;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding: var(--wp--preset--spacing--3-xl) var(--wp--preset--spacing--lg);
}

/* Thumbnail with Favorite Button */
:where(.c-single-case-001__thumbnail) {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--wp--custom--border--radius--lg);
    overflow: hidden;
    background: var(--wp--preset--color--gray-lightest);
}

:where(.c-single-case-001__thumbnail img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Case Label */
:where(.c-single-case-001__case-label) {
    position: absolute;
    top: var(--wp--preset--spacing--base);
    left: var(--wp--preset--spacing--base);
    background: var(--wp--preset--color--error);
    color: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--base);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: var(--wp--custom--font-weight--bold);
    border-radius: var(--wp--custom--border--radius--full);
    z-index: var(--wp--custom--z-index--10);
}

/* Favorite Button Position */
:where(.c-single-case-001__favorite) {
    position: absolute;
    top: var(--wp--preset--spacing--base);
    right: var(--wp--preset--spacing--base);
    z-index: var(--wp--custom--z-index--10);
}

/* Header Content */
:where(.c-single-case-001__header-content) {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--lg);
}

/* Title */
:where(.c-single-case-001__title) {
    font-size: var(--wp--preset--font-size--3-xl);
    font-weight: var(--wp--custom--font-weight--bold);
    line-height: var(--wp--custom--line-height--sm);
    margin: 0;
}

/* Patient Info */
:where(.c-single-case-001__patient-info) {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--sm);
}

:where(.c-single-case-001__patient-basic),
:where(.c-single-case-001__patient-concern) {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--sm);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--gray-dark);
}

:where(.c-single-case-001__patient-basic .material-symbols-outlined),
:where(.c-single-case-001__patient-concern .material-symbols-outlined) {
    font-size: 2rem;
    color: var(--wp--preset--color--gray);
}

/* Badges */
:where(.c-single-case-001__badges) {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--sm);
}

:where(.c-single-case-001__badge) {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--xs);
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--base);
    font-size: var(--wp--preset--font-size--sm);
    border-radius: var(--wp--custom--border--radius--full);
    border: var(--wp--custom--border--width--1) solid;
}

:where(.c-single-case-001__badge .material-symbols-outlined) {
    font-size: 1.8rem;
}

:where(.c-single-case-001__badge--nayami) {
    background: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--primary-light);
    color: var(--wp--preset--color--primary-dark);
}

:where(.c-single-case-001__badge--parts) {
    background: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--success-light);
    color: var(--wp--preset--color--success-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    :where(.c-single-case-001__header) {
        grid-template-columns: 1fr;
        gap: var(--wp--preset--spacing--2-xl);
    }

    :where(.c-single-case-001__title) {
        font-size: var(--wp--preset--font-size--2-xl);
    }
}

@media (max-width: 768px) {
    :where(.c-single-case-001__header) {
        padding: var(--wp--preset--spacing--2-xl) var(--wp--preset--spacing--base);
    }

    :where(.c-single-case-001__title) {
        font-size: var(--wp--preset--font-size--xl);
    }

    :where(.c-single-case-001__favorite) {
        top: var(--wp--preset--spacing--sm);
        right: var(--wp--preset--spacing--sm);
    }
}
