/* ============================================
   components.css — カード、ボタン、バッジ等
   ============================================ */

/* --- カード --- */
.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card__body {
    padding: var(--space-md);
}

.card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #f0f0f0;
}

/* --- ボタン --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.875rem;
    transition: opacity 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--color-gradient);
    color: #fff;
}

.btn--outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--sm {
    padding: 6px 16px;
    font-size: 0.75rem;
}

.btn--ig {
    background: linear-gradient(45deg, #833AB4, #E1306C, #F77737);
    color: #fff;
}

.btn--tiktok {
    background: linear-gradient(135deg, #000000, #25F4EE);
    color: #fff;
}

.btn--x {
    background: #000000;
    color: #fff;
}

/* --- バッジ --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge--on-air {
    background: var(--color-accent);
    color: #fff;
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge--new {
    background: var(--color-primary);
    color: #fff;
}

.badge--streaming {
    background: var(--color-abema);
    color: #fff;
}

.badge--coming {
    background: var(--color-warning);
    color: #fff;
}

.badge--live {
    background: #EF4444;
    color: #fff;
    animation: blink 1s step-end infinite;
}

/* プラットフォームバッジ */
.badge--abema {
    background: var(--color-abema);
    color: #fff;
}

.badge--netflix {
    background: var(--color-netflix);
    color: #fff;
}

.badge--prime {
    background: var(--color-prime);
    color: #fff;
}

/* ステータスバッジ */
.badge--active {
    background: var(--color-success);
    color: #fff;
}

.badge--ended {
    background: var(--color-danger);
    color: #fff;
}

.badge--married {
    background: var(--color-gold);
    color: #fff;
}

.badge--unknown {
    background: #9CA3AF;
    color: #fff;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- ピルフィルター --- */
.pill-filters {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding: 0 var(--space-md);
    scrollbar-width: none;
}

.pill-filters::-webkit-scrollbar {
    display: none;
}

.pill-filter {
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--color-card);
    border: 1px solid #E5E7EB;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pill-filter.is-active,
.pill-filter:hover {
    background: var(--color-gradient);
    color: #fff;
    border-color: transparent;
}

/* --- Instagram風アバター --- */
.ig-avatar {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-circle);
    padding: 3px;
    background: linear-gradient(45deg, #833AB4, #E1306C, #F77737);
}

.ig-avatar__img {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    border: 3px solid var(--color-card);
    background-color: #f0f0f0;
}

.ig-avatar--lg .ig-avatar__img {
    width: 90px;
    height: 90px;
}

/* --- ストーリーズ型出演者 --- */
.stories-scroll {
    gap: var(--space-md);
}

.stories-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
    text-align: center;
    text-decoration: none;
}

.stories-item:active .ig-avatar {
    transform: scale(0.95);
}

.stories-item .ig-avatar {
    transition: transform 0.2s ease;
}

.stories-item__name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text);
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stories-item__sns {
    display: flex;
    gap: 3px;
}

.stories-item__sns-icon {
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    color: #fff;
    line-height: 1.3;
}

.stories-item__sns-icon--ig {
    background: linear-gradient(45deg, #833AB4, #E1306C);
}

.stories-item__sns-icon--tiktok {
    background: #000;
}

/* --- 検索バー --- */
.search-bar {
    position: relative;
    max-width: 100%;
    margin: 0 var(--space-md);
}

.search-bar__input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    border-radius: var(--radius-pill);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    border: 1px solid #E5E7EB;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.search-bar__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--color-text-sub);
    pointer-events: none;
}

/* --- セクションヘッダー --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-size: 1.125rem;
}

.section-header__more {
    font-size: 0.8125rem;
    color: var(--color-primary);
    font-weight: 500;
}
