/**
 * Petlton - 保護活動者詳細ページ
 * ファイル: shelters/detail/index.php
 */

/* ===== ヘッダー ===== */
.shelter-header {
    position: relative;
    margin-bottom: 2rem;
}

.cover-image {
    width: 100%;
    height: 300px;
    background: var(--color-gradient);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== プロフィール ===== */
.shelter-profile {
    display: flex;
    gap: 2rem;
    margin-top: -80px;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.shelter-avatar {
    flex-shrink: 0;
}

.shelter-avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background: var(--color-white);
}

.shelter-info {
    flex: 1;
    padding-top: 80px;
}

.shelter-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.shelter-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.shelter-location {
    color: var(--color-text-secondary);
}

.shelter-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.follow-button {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ===== タブナビゲーション ===== */
.tab-navigation {
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 2rem;
}

.tab-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-navigation li a {
    display: block;
    padding: 1rem 0.5rem;
    text-decoration: none;
    color: var(--color-text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-navigation li a:hover {
    color: var(--color-primary);
}

.tab-navigation li a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ===== タブコンテンツ ===== */
.tab-content {
    min-height: 400px;
}

/* プロフィールセクション */
.bio-section {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bio-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.bio-section p {
    line-height: 1.8;
    color: var(--color-text-primary);
}

/* 連絡先情報 */
.contact-info {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-bg-light);
    border-radius: 4px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-weight: 600;
    margin-right: 1rem;
    color: var(--color-text-secondary);
    min-width: 80px;
}

/* ソーシャルリンク */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.social-links a {
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===== ペットグリッド ===== */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pet-card {
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-xs);
    transition: transform 0.3s;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.pet-card-content {
    padding: 1rem;
}

.pet-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pet-meta {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ===== 空状態 ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ===== レスポンシブ ===== */
@media (max-width: 991px) {
    .pets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .shelter-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }

    .shelter-info {
        padding-top: 1rem;
    }

    .shelter-stats {
        justify-content: center;
    }

    .tab-navigation ul {
        overflow-x: auto;
    }

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