/* ===================================
   カウンセラー詳細ページ専用スタイル
   counselor.php
   =================================== */

/* ページコンテナ */
.counselor-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

/* プロフィールヘッダー */
.profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* PC表示時はコンパクトに */
@media (min-width: 768px) {
    .profile-header {
        gap: 1rem;
    }
}

.profile-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* PC表示時はアバターを小さく */
@media (min-width: 768px) {
    .profile-avatar-large,
    .profile-avatar-placeholder-large {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-placeholder-large {
        font-size: 2.2rem;
    }
}

.profile-avatar-placeholder-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.profile-name {
    font-size: 1.8rem;
    margin: 0;
}

/* PC表示時は名前を小さく */
@media (min-width: 768px) {
    .profile-name {
        font-size: 1.4rem;
    }
}

.profile-job-title {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* PC表示時は肩書きを小さく */
@media (min-width: 768px) {
    .profile-job-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.profile-stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-like-button {
    background: none;
    border: 2px solid #e91e63;
    color: #e91e63;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.profile-like-button.liked {
    background: #e91e63;
    color: white;
}

.profile-like-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.profile-book-button {
    padding: 0.5rem 1.5rem;
}

/* 料金表示 */
.profile-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.profile-price-unit {
    font-size: 1rem;
    color: #999;
}

/* セクションタイトル */
.section-title-main {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* 専門分野タグ */
.specialties-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.specialty-tag-large {
    background: #f0f4ff;
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* いいねカウント表示 */
.like-count-display {
    color: #e91e63;
    font-size: 1.1rem;
}

/* コンテンツグリッド */
.content-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* カードマージン */
.card-mb {
    margin-bottom: 1.5rem;
}

/* ブログリスト */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-list-item {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: background 0.2s;
}

.blog-list-item:hover {
    background: #f8f9fa;
}

.blog-list-thumbnail {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

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

.blog-list-title {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: #333;
}

.blog-list-date {
    color: #999;
    font-size: 0.78rem;
}

/* アクションカード */
.action-card-center {
    margin-bottom: 1.5rem;
    text-align: center;
}

.full-like-button {
    width: 100%;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px solid #e91e63;
}

.full-like-button.liked {
    background: #e91e63;
    color: white;
}

.full-like-button.not-liked {
    background: white;
    color: #e91e63;
}

.message-link-button {
    display: block;
    margin-bottom: 0.75rem;
}

/* 未ログインカード */
.login-prompt-card {
    margin-bottom: 1.5rem;
    text-align: center;
    background: #f8f9fa;
}

.login-prompt-content {
    margin-bottom: 1rem;
}

.login-prompt-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-prompt-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.login-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.login-button-flex {
    flex: 1;
    min-width: 120px;
}

/* 空き時間セクション */
.section-title-medium {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.no-slots-text {
    color: #666;
    text-align: center;
    padding: 1rem;
}

/* 自己紹介 */
.profile-introduction {
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

/* 空き時間スロット */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.slot-item {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    background: #fafafa;
    transition: all 0.2s;
}

.slot-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.slot-date {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.slot-time {
    color: #667eea;
}

.no-slots-message {
    text-align: center;
    color: #999;
    padding: 2rem;
}

.request-schedule-button {
    display: block;
    text-align: center;
}

/* スロットリスト */
.slot-list {
    /* スロットリストのコンテナ */
}

.slot-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.slot-info {
    /* スロット情報 */
}

.slot-time-range {
    margin-left: 0.5rem;
    color: #666;
}

.slot-action-button {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

/* ブログセクション */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.blog-post-card-small {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.blog-post-card-small:hover {
    transform: translateY(-2px);
}

.blog-thumbnail-small {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.blog-title-small {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-date-small {
    font-size: 0.75rem;
    color: #999;
}

.no-blog-message {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
        width: 100%;
    }
    
    .content-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .slots-grid {
        grid-template-columns: 1fr;
    }
    
    .login-buttons {
        flex-direction: column;
    }
    
    .login-button-flex {
        width: 100%;
    }
}

/* ===================================
   コンテンツレイアウト
   =================================== */

/* 2カラムグリッド */
.content-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* カード間隔 */
.card-mb {
    margin-bottom: 1.5rem;
}

/* ===================================
   ブログリスト
   =================================== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-list-item {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: background 0.2s;
}

.blog-list-item:hover {
    background: #f8f9fa;
}

.blog-list-thumbnail {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

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

.blog-list-title {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: #333;
}

.blog-list-date {
    color: #999;
    font-size: 0.78rem;
}

/* ===================================
   アクションカード
   =================================== */
.action-card-center {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.full-like-button {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e91e63;
    background: white;
    color: #e91e63;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.full-like-button.liked {
    background: #e91e63;
    color: white;
}

.full-like-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.full-like-button.not-liked {
    color: #ccc;
    border-color: #ccc;
}

.message-link-button {
    width: 100%;
    display: block;
    text-align: center;
}

/* ログインプロンプト */
.login-prompt-card {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.login-prompt-content {
    margin-bottom: 1.5rem;
}

.login-prompt-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-prompt-text {
    color: #666;
    line-height: 1.6;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-button-flex {
    width: 100%;
    text-align: center;
}

/* ===================================
   予約スロット
   =================================== */
.section-title-medium {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.no-slots-text {
    text-align: center;
    color: #999;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.request-schedule-button {
    width: 100%;
    text-align: center;
}

.slot-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.slot-list-item:hover {
    background: #f8f9fa;
}

.slot-list-item:last-child {
    border-bottom: none;
}

.slot-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slot-info strong {
    font-size: 0.8rem;
    min-width: 75px;
}

.slot-time-range {
    color: #667eea;
    font-weight: 600;
    font-size: 0.8rem;
}

.slot-action-button {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}
    color: #667eea;
    font-size: 0.9rem;
}

.slot-action-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ===================================
   レスポンシブ（追加）
   =================================== */
@media (max-width: 768px) {
    .content-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .slot-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .slot-action-button {
        width: 100%;
    }
}
