/* メッセージ */
.message {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ヒーローセクション */
.event-detail-hero {
    background: linear-gradient(135deg, #f8bbd0 0%, #d81b60 100%);
    color: white;
    padding: 50px 20px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.event-title {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: break-word;
}

.event-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.badge-hero {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-indoor-hero,
.badge-female-hero,
.badge-soft-tennis-hero {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.event-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 16px;
    opacity: 0.95;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 主催者名リンク（ヒーロー内） */
.host-name-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.host-name-link:hover {
    color: #fff3e0;
    text-decoration: underline;
}

/* メインコンテンツ */
.detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.main-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.section-title {
    font-size: 20px;
    color: #d81b60;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8bbd0;
}

/* イベント詳細情報 */
.info-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.info-icon {
    font-size: 24px;
    min-width: 30px;
}

.info-content h3 {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.info-content p {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    word-wrap: break-word;
}

/* イベント詳細内のリンク */
.info-content a {
    color: #d81b60;
    text-decoration: none;
    transition: all 0.2s;
}

.info-content a:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* バッジ */
.event-level {
    display: inline-block;
    padding: 6px 15px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.female-only-badge {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    color: #c2185b;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

/* 説明ボックス */
.description-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    color: #666;
    word-wrap: break-word;
}

/* サイドバー */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-card,
.participants-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.card-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 参加状況 */
.participants-status {
    text-align: center;
    margin-bottom: 20px;
}

.participants-count {
    font-size: 48px;
    font-weight: bold;
    color: #d81b60;
    margin-bottom: 10px;
}

.participants-breakdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 14px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.participants-divider {
    border-top: 2px solid #f0f0f0;
    margin: 10px 0;
}

.participants-label {
    color: #999;
    font-size: 14px;
}

/* ボタン */
.btn {
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
    border: none;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #f8bbd0 0%, #d81b60 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.4);
}

.btn-secondary {
    width: 100%;
    background: white;
    color: #d81b60;
    border: 2px solid #d81b60;
}

.btn-secondary:hover {
    background: #d81b60;
    color: white;
}

/* ステータスメッセージ */
.status-message {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    border: 2px solid #4caf50;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ff9800;
}

.status-disabled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    cursor: not-allowed;
}

.disabled-reason {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.host-badge {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    border: 2px solid #ffc107;
}

/* 参加者リスト */
.participants-list {
    margin-top: 15px;
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    border-radius: 8px;
}

.participant-item:hover {
    background: #fef5f9;
    transform: translateX(3px);
}

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

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.participant-name {
    font-weight: 500;
    color: #333;
}

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

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    background: #4caf50;
    color: white;
}

.no-participants {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* 承認待ち参加者 */
.pending-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.pending-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.pending-item {
    background: #fff9e6;
    border: 2px solid #ffd700;
    margin-bottom: 10px;
}

.participant-actions {
    display: flex;
    gap: 8px;
}

.btn-approve,
.btn-reject {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-approve {
    background: #4caf50;
    color: white;
}

.btn-approve:hover {
    background: #45a049;
}

.btn-reject {
    background: #f44336;
    color: white;
}

.btn-reject:hover {
    background: #da190b;
}

/* タブレット対応 */
@media (max-width: 968px) {
    .detail-container {
        grid-template-columns: 1fr;
    }

    .event-title {
        font-size: 24px;
    }

    .participants-breakdown {
        flex-direction: column;
        gap: 5px;
    }

    .event-meta {
        gap: 15px;
    }

    .main-content,
    .action-card,
    .participants-card {
        padding: 20px;
    }
}

/* スマホ対応 */
@media (max-width: 480px) {
    .event-detail-hero {
        padding: 30px 15px;
    }

    .event-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .event-badges {
        gap: 8px;
        margin-bottom: 12px;
    }

    .badge-hero {
        padding: 6px 12px;
        font-size: 12px;
    }

    .event-meta {
        gap: 12px;
        font-size: 14px;
    }

    .meta-item {
        gap: 6px;
    }

    .detail-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .main-content {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .info-item {
        gap: 12px;
        padding: 12px;
    }

    .info-icon {
        font-size: 20px;
        min-width: 24px;
    }

    .info-content h3 {
        font-size: 12px;
    }

    .info-content p {
        font-size: 14px;
    }

    .description-box {
        padding: 15px;
        font-size: 14px;
    }

    .action-card,
    .participants-card {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .participants-status {
        margin-bottom: 15px;
    }

    .participants-breakdown {
        font-size: 13px;
        gap: 8px;
    }

    .participants-label {
        font-size: 12px;
    }

    .btn,
    .status-message {
        padding: 12px;
        font-size: 15px;
    }

    .participant-item {
        gap: 10px;
        padding: 10px;
    }

    .participant-name {
        font-size: 14px;
    }

    .message {
        margin: 15px auto;
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 極小スマホ対応 */
@media (max-width: 360px) {
    .event-title {
        font-size: 20px;
    }

    .event-meta {
        font-size: 13px;
    }

    .section-title {
        font-size: 16px;
    }

    .info-content p {
        font-size: 13px;
    }

    .participants-breakdown {
        font-size: 12px;
    }
}