/**
 * Petlton - ペット詳細ページ専用CSS
 * 注: ボタン、カード、テーブル等の共通スタイルは components/ に定義済み
 */

/* ===== レイアウト ===== */
.main-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.content-main {
    flex: 1;
    min-width: 0;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
    background: var(--color-bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-link);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== 画像ギャラリー（ページ固有） ===== */
.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-link);
}

/* ===== 基本情報テーブル（ページ固有） ===== */
.info-table {
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xs);
}

.info-table h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    background: var(--color-bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    width: 180px;
    border-bottom: 1px solid var(--color-border);
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

/* ===== 都道府県リスト（ページ固有） ===== */
.prefecture-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.prefecture-list span {
    padding: 0.5rem;
    background: var(--color-bg-light);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== アクションボタン（ペット詳細ページ固有） ===== */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

/* ===== 関連カード（ページ固有スタイル） ===== */
.related-card {
    background: var(--color-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card-body {
    padding: 1rem;
}

.related-card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.related-card-meta {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ===== レスポンシブ ===== */
@media (max-width: 992px) {
    .main-content-wrapper {
        flex-direction: column;
    }

    .action-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .action-buttons .btn:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .info-table th {
        width: 120px;
        font-size: 0.9rem;
    }

    .prefecture-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .action-buttons .btn:last-child {
        grid-column: auto;
    }
}
