/* 運動予約詳細画面専用スタイル */

/* ヘッダーレイアウト調整 */
.header {
    text-align: center;
    position: relative;
}

/* 戻るボタン */
.back-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ページタイトル */
.page-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* 共有ボタン */
.share-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 予約詳細 */
.reservation-detail {
    background-color: white;
    margin-bottom: 16px;
}

.reservation-header {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.exercise-icon {
    font-size: 48px;
    margin-right: 16px;
}

.reservation-info {
    flex: 1;
}

.exercise-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.reservation-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reservation-time .date {
    font-size: 16px;
    font-weight: 600;
    color: #2196F3;
}

.reservation-time .time {
    font-size: 14px;
    color: #666;
}

/* セクション共通 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* 主催者セクション */
.host-section {
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.host-info {
    display: flex;
    align-items: center;
}

.host-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 12px;
}

.host-details {
    flex: 1;
}

.host-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.host-level {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 運動詳細 */
.exercise-details {
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 説明セクション */
.description-section {
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.description-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* 持ち物セクション */
.equipment-section {
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.equipment-icon {
    font-size: 20px;
}

.equipment-text {
    font-size: 14px;
    color: #333;
}

/* 参加者セクション */
.participants-section {
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.participant-item:hover {
    background-color: #f8f9fa;
}

.participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 12px;
}

.participant-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.participant-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.participant-role {
    font-size: 12px;
    color: #666;
}

/* アクションボタン */
.reservation-actions {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.action-btn {
    flex: 1;
    background: none;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn {
    color: #ff4757;
    border-color: #ff4757;
}

.cancel-btn:hover {
    background-color: rgba(255, 71, 87, 0.1);
}

.comment-btn {
    color: #2196F3;
    border-color: #2196F3;
}

.comment-btn:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.action-icon {
    font-size: 16px;
}

/* コメントセクション */
.comments-section {
    background-color: white;
    padding: 16px;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.comments-list {
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 12px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.comment-user {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #666;
}

.comment-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

/* コメント入力 */
.comment-input-container {
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.comment-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.comment-input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.send-comment-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-comment-btn:hover {
    background-color: #1976D2;
    transform: scale(1.05);
}

.send-comment-btn:active {
    transform: scale(0.95);
}

.send-icon {
    font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 430px) {
    .reservation-header {
        padding: 16px;
    }
    
    .exercise-icon {
        font-size: 40px;
        margin-right: 12px;
    }
    
    .exercise-title {
        font-size: 18px;
    }
    
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .detail-item {
        padding: 10px;
    }
    
    .reservation-actions {
        padding: 12px;
        gap: 8px;
    }
    
    .action-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .comment-item {
        margin-bottom: 12px;
    }
    
    .comment-avatar {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
    
    .comment-content {
        padding: 10px;
    }
}